public final class WriteTimeoutStreamSinkChannel extends DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>
Options.WRITE_TIMEOUTcloseSetter, delegate, writeSetter| Constructor and Description |
|---|
WriteTimeoutStreamSinkChannel(org.xnio.channels.StreamSinkChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
setOption(org.xnio.Option<T> option,
T value) |
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) |
awaitWritable, awaitWritable, close, flush, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, isOpen, isWriteResumed, resumeWrites, shutdownWrites, supportsOption, suspendWrites, wakeupWrites, writepublic WriteTimeoutStreamSinkChannel(org.xnio.channels.StreamSinkChannel delegate)
delegate - The underlying channelpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>IOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>IOExceptionpublic long transferFrom(FileChannel src, long position, long count) throws IOException
transferFrom in interface org.xnio.channels.StreamSinkChanneltransferFrom in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>IOExceptionpublic long transferFrom(org.xnio.channels.StreamSourceChannel source,
long count,
ByteBuffer throughBuffer)
throws IOException
transferFrom in interface org.xnio.channels.StreamSinkChanneltransferFrom in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>IOExceptionpublic <T> T setOption(org.xnio.Option<T> option,
T value)
throws IllegalArgumentException,
IOException
setOption in interface org.xnio.channels.ConfigurablesetOption in class DelegatingStreamSinkChannel<WriteTimeoutStreamSinkChannel>IllegalArgumentExceptionIOExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.