public class SSLSocketChannelWrapper extends DefaultSocketChannelWrapper
socketChannel| Constructor and Description |
|---|
SSLSocketChannelWrapper(SSLContext sslContext,
SocketChannel sc,
boolean client) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes socket channel.
|
void |
closeOutbound()
Closes outbound.
|
int |
read(ByteBuffer output) |
String |
toString() |
int |
write(ByteBuffer input) |
closeInbound, configureBlocking, connect, isBlocking, isConnected, isOpen, keyFor, register, socketpublic SSLSocketChannelWrapper(SSLContext sslContext, SocketChannel sc, boolean client) throws Exception
Exceptionpublic int write(ByteBuffer input) throws IOException
write in interface SocketChannelWrapperwrite in class DefaultSocketChannelWrapperIOExceptionpublic int read(ByteBuffer output) throws IOException
read in interface SocketChannelWrapperread in class DefaultSocketChannelWrapperIOExceptionpublic void closeOutbound()
throws IOException
SocketChannelWrapperNot thread safe. Should be called in channel writer thread.
closeOutbound in interface SocketChannelWrappercloseOutbound in class DefaultSocketChannelWrapperIOExceptionpublic void close()
throws IOException
SocketChannelWrapperclose in interface SocketChannelWrapperclose in interface Closeableclose in interface AutoCloseableclose in class DefaultSocketChannelWrapperIOExceptionpublic String toString()
toString in class DefaultSocketChannelWrapperCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.