public class SslConduit extends Object implements org.xnio.conduits.StreamSourceConduit, org.xnio.conduits.StreamSinkConduit
Modifier and Type | Field and Description |
---|---|
static ByteBuffer | EMPTY_BUFFER |
static int | MAX_READ_LISTENER_INVOCATIONS |
Modifier and Type | Method and Description |
---|---|
void | awaitReadable() |
void | awaitReadable(long time, TimeUnit timeUnit) |
void | awaitWritable() |
void | awaitWritable(long time, TimeUnit timeUnit) |
void | close() forcibly closes the connection |
boolean | flush() |
org.xnio.XnioIoThread | getReadThread() |
SSLEngine | getSSLEngine() |
SSLSession | getSslSession() |
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 offs, int len) |
void | resumeReads() |
void | resumeWrites() |
void | setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler) |
void | setSslEngine(SSLEngine engine) |
void | setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler) |
void | startHandshake() |
void | suspendReads() |
void | suspendWrites() |
void | terminateReads() |
void | terminateWrites() |
String | toString() |
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 offs, int len) |
int | writeFinal(ByteBuffer src) |
long | writeFinal(ByteBuffer[] srcs, int offset, int length) |
public static final int MAX_READ_LISTENER_INVOCATIONS
public static final ByteBuffer EMPTY_BUFFER
public void terminateReads() throws IOException
terminateReads
in interface org.xnio.conduits.SourceConduit
IOException
public boolean isReadShutdown()
isReadShutdown
in interface org.xnio.conduits.SourceConduit
public void resumeReads()
resumeReads
in interface org.xnio.conduits.SourceConduit
public void suspendReads()
suspendReads
in interface org.xnio.conduits.SourceConduit
public void wakeupReads()
wakeupReads
in interface org.xnio.conduits.SourceConduit
public boolean isReadResumed()
isReadResumed
in interface org.xnio.conduits.SourceConduit
public void awaitReadable() throws IOException
awaitReadable
in interface org.xnio.conduits.SourceConduit
IOException
public void awaitReadable(long time, TimeUnit timeUnit) throws IOException
awaitReadable
in interface org.xnio.conduits.SourceConduit
IOException
public org.xnio.XnioIoThread getReadThread()
getReadThread
in interface org.xnio.conduits.SourceConduit
public void setReadReadyHandler(org.xnio.conduits.ReadReadyHandler handler)
setReadReadyHandler
in interface org.xnio.conduits.SourceConduit
public long transferFrom(FileChannel src, long position, long count) throws IOException
transferFrom
in interface org.xnio.conduits.StreamSinkConduit
IOException
public long transferFrom(org.xnio.channels.StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException
transferFrom
in interface org.xnio.conduits.StreamSinkConduit
IOException
public int write(ByteBuffer src) throws IOException
write
in interface org.xnio.conduits.StreamSinkConduit
IOException
public long write(ByteBuffer[] srcs, int offs, int len) throws IOException
write
in interface org.xnio.conduits.StreamSinkConduit
IOException
public int writeFinal(ByteBuffer src) throws IOException
writeFinal
in interface org.xnio.conduits.StreamSinkConduit
IOException
public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException
writeFinal
in interface org.xnio.conduits.StreamSinkConduit
IOException
public void terminateWrites() throws IOException
terminateWrites
in interface org.xnio.conduits.SinkConduit
IOException
public boolean isWriteShutdown()
isWriteShutdown
in interface org.xnio.conduits.SinkConduit
public void resumeWrites()
resumeWrites
in interface org.xnio.conduits.SinkConduit
public void suspendWrites()
suspendWrites
in interface org.xnio.conduits.SinkConduit
public void wakeupWrites()
wakeupWrites
in interface org.xnio.conduits.SinkConduit
public boolean isWriteResumed()
isWriteResumed
in interface org.xnio.conduits.SinkConduit
public void awaitWritable() throws IOException
awaitWritable
in interface org.xnio.conduits.SinkConduit
IOException
public void awaitWritable(long time, TimeUnit timeUnit) throws IOException
awaitWritable
in interface org.xnio.conduits.SinkConduit
IOException
public org.xnio.XnioIoThread getWriteThread()
getWriteThread
in interface org.xnio.conduits.SinkConduit
public void setWriteReadyHandler(org.xnio.conduits.WriteReadyHandler handler)
setWriteReadyHandler
in interface org.xnio.conduits.SinkConduit
public void truncateWrites() throws IOException
truncateWrites
in interface org.xnio.conduits.SinkConduit
IOException
public boolean flush() throws IOException
flush
in interface org.xnio.conduits.SinkConduit
IOException
public long transferTo(long position, long count, FileChannel target) throws IOException
transferTo
in interface org.xnio.conduits.StreamSourceConduit
IOException
public long transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) throws IOException
transferTo
in interface org.xnio.conduits.StreamSourceConduit
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface org.xnio.conduits.StreamSourceConduit
IOException
public long read(ByteBuffer[] dsts, int offs, int len) throws IOException
read
in interface org.xnio.conduits.StreamSourceConduit
IOException
public org.xnio.XnioWorker getWorker()
getWorker
in interface org.xnio.conduits.Conduit
public void startHandshake() throws SSLException
SSLException
public SSLSession getSslSession()
public SSLEngine getSSLEngine()
public void close()
public void setSslEngine(SSLEngine engine)
Copyright © 2017 JBoss by Red Hat. All rights reserved.