public class ReadableSslChannel extends ReadableBufferedChannel implements TasksListener
SelectionChannel as some framework classes
rely on this down the processing chain.| Constructor and Description |
|---|
ReadableSslChannel(ReadableSelectionChannel source,
SslConnection<?> connection,
WakeupListener wakeupListener)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SslConnection<?> |
getConnection()
Returns the parent SSL connection.
|
void |
onCompleted()
Callback method invoked upon delegated tasks completion.
|
int |
onDrain(Buffer buffer,
int maxDrained,
Object... args)
Drains the byte buffer.
|
void |
postProcess(int drained)
Does nothing by default.
|
couldDrain, couldFill, isEndReached, onFill, onMessageCompleted, read, setEndReachedcanLoop, close, getBuffer, onFillEof, preProcessgetRegistration, isBlocking, setRegistration, toStringgetWrappedChannel, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRegistrationisBlockingpublic ReadableSslChannel(ReadableSelectionChannel source, SslConnection<?> connection, WakeupListener wakeupListener)
source - The source channel.connection - The parent SSL connection.wakeupListener - The wakeup listener that will be notified.protected SslConnection<?> getConnection()
public void onCompleted()
onCompleted in interface TasksListenerpublic int onDrain(Buffer buffer, int maxDrained, Object... args) throws IOException
onDrain in interface BufferProcessoronDrain in class ReadableBufferedChannelbuffer - The IO buffer to drain.maxDrained - The maximum number of bytes drained by this call.args - The optional arguments to pass back to the callbacks.IOExceptionpublic void postProcess(int drained)
throws IOException
BufferedSelectionChannelpostProcess in interface BufferProcessorpostProcess in class BufferedSelectionChannel<ReadableSelectionChannel>drained - The number of bytes drained or -1 if the filling source has
ended.IOExceptionCopyright © 2005–2015. All rights reserved.