Package java.nio.channels

Examples of java.nio.channels.ClosedByInterruptException


                        ch.write(buf, null).get();
                    }
                } catch (InterruptedException e) {
                    ch.close();
                    Thread.currentThread().interrupt();
                    throw new ClosedByInterruptException();
                } catch (ExecutionException e) {
                    launderExecutionException(e); // always throws
                    throw new AssertionError("unreachable");
                }
            }
View Full Code Here


    protected final void executeAndWait(FloppyCommand cmd, long timeout)
        throws ClosedByInterruptException, TimeoutException {
        try {
            fdc.executeAndWait(cmd, timeout);
        } catch (InterruptedException ex) {
            throw new ClosedByInterruptException();
        }
    }
View Full Code Here

          waitForFetch();
          return null;
        }}, retryParams, GcsServiceImpl.exceptionHandler);
    } catch (RetryInterruptedException e) {
      closed = true;
      throw new ClosedByInterruptException();
    } catch (NonRetriableException e) {
      Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
      throw e;
    }
  }
View Full Code Here

                token, buf.slice(), retryParams.getRequestTimeoutMillisForCurrentAttempt());
            return null;
          }
        }, retryParams, GcsServiceImpl.exceptionHandler);
      } catch (RetryInterruptedException ex) {
        throw new ClosedByInterruptException();
      } catch (NonRetriableException e) {
        Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
        throw e;
      }
      token = null;
View Full Code Here

          return null;
        }
      }, retryParams, GcsServiceImpl.exceptionHandler);
    } catch (RetryInterruptedException ex) {
      token = null;
      throw new ClosedByInterruptException();
    } catch (NonRetriableException e) {
      Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
      throw e;
    }
  }
View Full Code Here

            }
          }
        }, retryParams, GcsServiceImpl.exceptionHandler);
      } catch (RetryInterruptedException e) {
        closed = true;
        throw new ClosedByInterruptException();
      } catch (RetryHelperException e) {
        Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
        throw e;
      }
    }
View Full Code Here

      }, options.getRetryParams(), exceptionHandler);
      return new GcsOutputChannelImpl(
          raw, token, options.getRetryParams(), options.getDefaultWriteBufferSize(),
          options.getHttpHeaders());
    } catch (RetryInterruptedException ex) {
      throw new ClosedByInterruptException();
    } catch (NonRetriableException e) {
      Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
      throw e;
    }
  }
View Full Code Here

            raw.putObject(filename, fileOptions, src, timeout);
            return null;
          }
        }, options.getRetryParams(), exceptionHandler);
    } catch (RetryInterruptedException ex) {
      throw new ClosedByInterruptException();
    } catch (NonRetriableException e) {
      Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
      throw e;
    }
  }
View Full Code Here

          long timeout = options.getRetryParams().getRequestTimeoutMillisForCurrentAttempt();
          return raw.getObjectMetadata(filename, timeout);
        }
      }, options.getRetryParams(), exceptionHandler);
    } catch (RetryInterruptedException ex) {
      throw new ClosedByInterruptException();
    } catch (NonRetriableException e) {
      Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
      throw e;
    }
  }
View Full Code Here

          long timeout = options.getRetryParams().getRequestTimeoutMillisForCurrentAttempt();
          return raw.deleteObject(filename, timeout);
        }
      }, options.getRetryParams(), exceptionHandler);
    } catch (RetryInterruptedException ex) {
      throw new ClosedByInterruptException();
    } catch (NonRetriableException e) {
      Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
      throw e;
    }
  }
View Full Code Here

TOP

Related Classes of java.nio.channels.ClosedByInterruptException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.