public class IdleTimeoutConduit extends Object implements org.xnio.conduits.StreamSinkConduit, org.xnio.conduits.StreamSourceConduit
| Constructor and Description |
|---|
IdleTimeoutConduit(org.xnio.StreamConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void | awaitReadable() |
void | awaitReadable(long time, TimeUnit timeUnit) |
void | awaitWritable() |
void | awaitWritable(long time, TimeUnit timeUnit) |
protected void | doClose() |
boolean | flush() |
long | getIdleTimeout() |
org.xnio.XnioIoThread | getReadThread() |
org.xnio.XnioWorker | getWorker() |
org.xnio.XnioIoThread | getWriteThread() |
boolean | isReadResumed() |
boolean | isReadShutdown() |
boolean | isWriteResumed() |
boolean | isWriteShutdown() |
int | read(ByteBuffer dst) |
long | read(ByteBuffer[] dsts, int offset, int length) |
void | resumeReads() |
void | resumeWrites() |
void | setIdleTimeout(long idleTimeout) |
void | setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler) |
void | setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler) |
void | suspendReads() |
void | suspendWrites() |
void | terminateReads() |
void | terminateWrites() |
long | transferFrom(FileChannel src, long position, long count) |
long | transferFrom(org.xnio.channels.StreamSourceChannel source, long count, ByteBuffer throughBuffer) |
long | transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) |
long | transferTo(long position, long count, FileChannel target) |
void | truncateWrites() |
void | wakeupReads() |
void | wakeupWrites() |
int | write(ByteBuffer src) |
long | write(ByteBuffer[] srcs, int offset, int length) |
int | writeFinal(ByteBuffer src) |
long | writeFinal(ByteBuffer[] srcs, int offset, int length) |
public IdleTimeoutConduit(org.xnio.StreamConnection connection)
protected void doClose()
public int write(ByteBuffer src) throws IOException
write in interface org.xnio.conduits.StreamSinkConduitIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface org.xnio.conduits.StreamSinkConduitIOExceptionpublic int writeFinal(ByteBuffer src) throws IOException
writeFinal in interface org.xnio.conduits.StreamSinkConduitIOExceptionpublic long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException
writeFinal in interface org.xnio.conduits.StreamSinkConduitIOExceptionpublic long transferTo(long position,
long count,
FileChannel target)
throws IOException transferTo in interface org.xnio.conduits.StreamSourceConduitIOExceptionpublic long transferTo(long count,
ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target)
throws IOException transferTo in interface org.xnio.conduits.StreamSourceConduitIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface org.xnio.conduits.StreamSourceConduitIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface org.xnio.conduits.StreamSourceConduitIOExceptionpublic long transferFrom(FileChannel src, long position, long count) throws IOException
transferFrom in interface org.xnio.conduits.StreamSinkConduitIOExceptionpublic long transferFrom(org.xnio.channels.StreamSourceChannel source,
long count,
ByteBuffer throughBuffer)
throws IOException transferFrom in interface org.xnio.conduits.StreamSinkConduitIOExceptionpublic void suspendReads()
suspendReads in interface org.xnio.conduits.SourceConduitpublic void terminateReads()
throws IOException terminateReads in interface org.xnio.conduits.SourceConduitIOExceptionpublic boolean isReadShutdown()
isReadShutdown in interface org.xnio.conduits.SourceConduitpublic void resumeReads()
resumeReads in interface org.xnio.conduits.SourceConduitpublic boolean isReadResumed()
isReadResumed in interface org.xnio.conduits.SourceConduitpublic void wakeupReads()
wakeupReads in interface org.xnio.conduits.SourceConduitpublic void awaitReadable()
throws IOException awaitReadable in interface org.xnio.conduits.SourceConduitIOExceptionpublic void awaitReadable(long time,
TimeUnit timeUnit)
throws IOException awaitReadable in interface org.xnio.conduits.SourceConduitIOExceptionpublic org.xnio.XnioIoThread getReadThread()
getReadThread in interface org.xnio.conduits.SourceConduitpublic void setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler)
setReadReadyHandler in interface org.xnio.conduits.SourceConduitpublic void terminateWrites()
throws IOException terminateWrites in interface org.xnio.conduits.SinkConduitIOExceptionpublic boolean isWriteShutdown()
isWriteShutdown in interface org.xnio.conduits.SinkConduitpublic void resumeWrites()
resumeWrites in interface org.xnio.conduits.SinkConduitpublic void suspendWrites()
suspendWrites in interface org.xnio.conduits.SinkConduitpublic void wakeupWrites()
wakeupWrites in interface org.xnio.conduits.SinkConduitpublic boolean isWriteResumed()
isWriteResumed in interface org.xnio.conduits.SinkConduitpublic void awaitWritable()
throws IOException awaitWritable in interface org.xnio.conduits.SinkConduitIOExceptionpublic void awaitWritable(long time,
TimeUnit timeUnit)
throws IOException awaitWritable in interface org.xnio.conduits.SinkConduitIOExceptionpublic org.xnio.XnioIoThread getWriteThread()
getWriteThread in interface org.xnio.conduits.SinkConduitpublic void setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler)
setWriteReadyHandler in interface org.xnio.conduits.SinkConduitpublic void truncateWrites()
throws IOException truncateWrites in interface org.xnio.conduits.SinkConduitIOExceptionpublic boolean flush()
throws IOException flush in interface org.xnio.conduits.SinkConduitIOExceptionpublic org.xnio.XnioWorker getWorker()
getWorker in interface org.xnio.conduits.Conduitpublic long getIdleTimeout()
public void setIdleTimeout(long idleTimeout)
Copyright © 2020 JBoss by Red Hat. All rights reserved.