org.xnio.conduits.Conduit, org.xnio.conduits.SourceConduit, org.xnio.conduits.StreamSourceConduitpublic final class EmptyStreamSourceConduit
extends java.lang.Object
implements org.xnio.conduits.StreamSourceConduit
| Constructor | Description |
|---|---|
EmptyStreamSourceConduit(org.xnio.XnioIoThread readThread) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
awaitReadable() |
|
void |
awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit) |
|
org.xnio.XnioIoThread |
getReadThread() |
|
org.xnio.XnioWorker |
getWorker() |
|
boolean |
isReadResumed() |
|
boolean |
isReadShutdown() |
|
int |
read(java.nio.ByteBuffer dst) |
|
long |
read(java.nio.ByteBuffer[] dsts,
int offs,
int len) |
|
void |
resumeReads() |
|
void |
setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler) |
|
void |
suspendReads() |
|
void |
terminateReads() |
|
long |
transferTo(long position,
long count,
java.nio.channels.FileChannel target) |
|
long |
transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
|
void |
wakeupReads() |
public EmptyStreamSourceConduit(org.xnio.XnioIoThread readThread)
readThread - the read thread for this conduitpublic void setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler)
setReadReadyHandler in interface org.xnio.conduits.SourceConduitpublic long transferTo(long position,
long count,
java.nio.channels.FileChannel target)
throws java.io.IOException
transferTo in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic long transferTo(long count,
java.nio.ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target)
throws java.io.IOException
transferTo in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts,
int offs,
int len)
throws java.io.IOException
read in interface org.xnio.conduits.StreamSourceConduitjava.io.IOExceptionpublic boolean isReadShutdown()
isReadShutdown in interface org.xnio.conduits.SourceConduitpublic void resumeReads()
resumeReads in interface org.xnio.conduits.SourceConduitpublic void suspendReads()
suspendReads in interface org.xnio.conduits.SourceConduitpublic void wakeupReads()
wakeupReads in interface org.xnio.conduits.SourceConduitpublic boolean isReadResumed()
isReadResumed in interface org.xnio.conduits.SourceConduitpublic void awaitReadable()
throws java.io.IOException
awaitReadable in interface org.xnio.conduits.SourceConduitjava.io.IOExceptionpublic void awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit)
throws java.io.IOException
awaitReadable in interface org.xnio.conduits.SourceConduitjava.io.IOExceptionpublic void terminateReads()
throws java.io.IOException
terminateReads in interface org.xnio.conduits.SourceConduitjava.io.IOExceptionpublic org.xnio.XnioIoThread getReadThread()
getReadThread in interface org.xnio.conduits.SourceConduitpublic org.xnio.XnioWorker getWorker()
getWorker in interface org.xnio.conduits.ConduitCopyright © 2018. All rights reserved.