Пример #1
0
 /**
  * Construct a new instance.
  *
  * @param configurable the configurable to delegate configuration requests to
  * @param conduit the initial conduit to use for data transport
  */
 public ConduitStreamSinkChannel(
     final Configurable configurable, final StreamSinkConduit conduit) {
   this.configurable = configurable;
   this.conduit = conduit;
   conduit.setWriteReadyHandler(
       new WriteReadyHandler.ChannelListenerHandler<ConduitStreamSinkChannel>(this));
 }
Пример #2
0
 public void shutdownWrites() throws IOException {
   conduit.terminateWrites();
 }
Пример #3
0
 public boolean flush() throws IOException {
   return conduit.flush();
 }
Пример #4
0
 public long write(final ByteBuffer[] dsts, final int offs, final int len) throws IOException {
   return conduit.write(dsts, offs, len);
 }
Пример #5
0
 public long write(final ByteBuffer[] srcs) throws IOException {
   return conduit.write(srcs, 0, srcs.length);
 }
Пример #6
0
 @Override
 public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException {
   return conduit.writeFinal(srcs, offset, length);
 }
Пример #7
0
 public XnioWorker getWorker() {
   return conduit.getWorker();
 }
Пример #8
0
 @Deprecated
 public XnioExecutor getWriteThread() {
   return conduit.getWriteThread();
 }
Пример #9
0
 public void awaitWritable(final long time, final TimeUnit timeUnit) throws IOException {
   conduit.awaitWritable(time, timeUnit);
 }
Пример #10
0
 public void awaitWritable() throws IOException {
   conduit.awaitWritable();
 }
Пример #11
0
 public boolean isWriteResumed() {
   return conduit.isWriteResumed();
 }
Пример #12
0
 public void wakeupWrites() {
   conduit.wakeupWrites();
 }
Пример #13
0
 public void resumeWrites() {
   conduit.resumeWrites();
 }
Пример #14
0
 public void suspendWrites() {
   conduit.suspendWrites();
 }
Пример #15
0
 @Override
 public long writeFinal(ByteBuffer[] srcs) throws IOException {
   return conduit.writeFinal(srcs, 0, srcs.length);
 }
Пример #16
0
 public boolean isOpen() {
   return !conduit.isWriteShutdown();
 }
Пример #17
0
 public void close() throws IOException {
   conduit.truncateWrites();
 }
Пример #18
0
 public long transferFrom(final FileChannel src, final long position, final long count)
     throws IOException {
   return conduit.transferFrom(src, position, count);
 }
Пример #19
0
 public XnioIoThread getIoThread() {
   return conduit.getWriteThread();
 }
Пример #20
0
 public long transferFrom(
     final StreamSourceChannel source, final long count, final ByteBuffer throughBuffer)
     throws IOException {
   return conduit.transferFrom(source, count, throughBuffer);
 }
Пример #21
0
 public int write(final ByteBuffer dst) throws IOException {
   return conduit.write(dst);
 }
Пример #22
0
 @Override
 public int writeFinal(ByteBuffer src) throws IOException {
   return conduit.writeFinal(src);
 }