public final class WriteTimeoutStreamSinkChannel extends DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
Options.WRITE_TIMEOUT
closeSetter, delegate, writeSetter
Constructor and Description |
---|
WriteTimeoutStreamSinkChannel(org.xnio.channels.StreamSinkChannel delegate) |
Modifier and Type | Method and Description |
---|---|
void | close() |
<T> T | setOption(org.xnio.Option<T> option, T value) |
void | shutdownWrites() |
long | transferFrom(FileChannel src, long position, long count) |
long | transferFrom(org.xnio.channels.StreamSourceChannel source, long count, ByteBuffer throughBuffer) |
int | write(ByteBuffer src) |
long | write(ByteBuffer[] srcs, int offset, int length) |
int | writeFinal(ByteBuffer src) |
long | writeFinal(ByteBuffer[] srcs) |
long | writeFinal(ByteBuffer[] srcs, int offset, int length) |
awaitWritable, awaitWritable, flush, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, isOpen, isWriteResumed, resumeWrites, supportsOption, suspendWrites, wakeupWrites, write
public WriteTimeoutStreamSinkChannel(org.xnio.channels.StreamSinkChannel delegate)
delegate
- The underlying channelpublic int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public int writeFinal(ByteBuffer src) throws IOException
writeFinal
in interface org.xnio.channels.StreamSinkChannel
writeFinal
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException
writeFinal
in interface org.xnio.channels.StreamSinkChannel
writeFinal
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public long writeFinal(ByteBuffer[] srcs) throws IOException
writeFinal
in interface org.xnio.channels.StreamSinkChannel
writeFinal
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public long transferFrom(FileChannel src, long position, long count) throws IOException
transferFrom
in interface org.xnio.channels.StreamSinkChannel
transferFrom
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public long transferFrom(org.xnio.channels.StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException
transferFrom
in interface org.xnio.channels.StreamSinkChannel
transferFrom
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public <T> T setOption(org.xnio.Option<T> option, T value) throws IllegalArgumentException, IOException
setOption
in interface org.xnio.channels.Configurable
setOption
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IllegalArgumentException
IOException
public void shutdownWrites() throws IOException
shutdownWrites
in interface org.xnio.channels.SuspendableWriteChannel
shutdownWrites
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in interface InterruptibleChannel
close
in interface org.xnio.channels.CloseableChannel
close
in interface org.xnio.channels.SuspendableWriteChannel
close
in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
IOException
Copyright © 2015 JBoss by Red Hat. All rights reserved.