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, socket
public SSLSocketChannelWrapper(SSLContext sslContext, SocketChannel sc, boolean client) throws Exception
Exception
public int write(ByteBuffer input) throws IOException
write
in interface SocketChannelWrapper
write
in class DefaultSocketChannelWrapper
IOException
public int read(ByteBuffer output) throws IOException
read
in interface SocketChannelWrapper
read
in class DefaultSocketChannelWrapper
IOException
public void closeOutbound() throws IOException
SocketChannelWrapper
Not thread safe. Should be called in channel writer thread.
closeOutbound
in interface SocketChannelWrapper
closeOutbound
in class DefaultSocketChannelWrapper
IOException
public void close() throws IOException
SocketChannelWrapper
close
in interface SocketChannelWrapper
close
in interface Closeable
close
in interface AutoCloseable
close
in class DefaultSocketChannelWrapper
IOException
public String toString()
toString
in class DefaultSocketChannelWrapper
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.