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 |
---|---|
<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) |
int |
writeFinal(ByteBuffer src) |
long |
writeFinal(ByteBuffer[] srcs) |
long |
writeFinal(ByteBuffer[] srcs,
int offset,
int length) |
awaitWritable, awaitWritable, close, flush, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, isOpen, isWriteResumed, resumeWrites, shutdownWrites, 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
Copyright © 2015 JBoss by Red Hat. All rights reserved.