Class ComConnectionHandler.Default
java.lang.Object
one.microstream.communication.types.ComConnectionHandler.Default
- All Implemented Interfaces:
ComConnectionHandler<SocketChannel>
- Enclosing interface:
- ComConnectionHandler<C>
public static final class ComConnectionHandler.Default extends Object implements ComConnectionHandler<SocketChannel>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.communication.types.ComConnectionHandler
ComConnectionHandler.Default -
Method Summary
Modifier and Type Method Description voidclose(SocketChannel connection)voidcloseReading(SocketChannel connection)voidcloseWriting(SocketChannel connection)ComConnectionListener<SocketChannel>createConnectionListener(InetSocketAddress address)SocketChannelopenConnection(InetSocketAddress address)voidprepareReading(SocketChannel connection)voidprepareWriting(SocketChannel connection)voidread(SocketChannel connction, ByteBuffer buffer)ComProtocolreceiveProtocol(SocketChannel connection, ComProtocolStringConverter stringConverter)voidsendProtocol(SocketChannel connection, ComProtocol protocol, ComProtocolStringConverter stringConverter)voidwrite(SocketChannel connction, ByteBuffer buffer)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.communication.types.ComConnectionHandler
writeChunk
-
Method Details
-
createConnectionListener
- Specified by:
createConnectionListenerin interfaceComConnectionHandler<SocketChannel>
-
openConnection
- Specified by:
openConnectionin interfaceComConnectionHandler<SocketChannel>
-
prepareReading
- Specified by:
prepareReadingin interfaceComConnectionHandler<SocketChannel>
-
prepareWriting
- Specified by:
prepareWritingin interfaceComConnectionHandler<SocketChannel>
-
close
- Specified by:
closein interfaceComConnectionHandler<SocketChannel>
-
closeReading
- Specified by:
closeReadingin interfaceComConnectionHandler<SocketChannel>
-
closeWriting
- Specified by:
closeWritingin interfaceComConnectionHandler<SocketChannel>
-
read
- Specified by:
readin interfaceComConnectionHandler<SocketChannel>
-
write
- Specified by:
writein interfaceComConnectionHandler<SocketChannel>
-
sendProtocol
public void sendProtocol(SocketChannel connection, ComProtocol protocol, ComProtocolStringConverter stringConverter)- Specified by:
sendProtocolin interfaceComConnectionHandler<SocketChannel>
-
receiveProtocol
public ComProtocol receiveProtocol(SocketChannel connection, ComProtocolStringConverter stringConverter)- Specified by:
receiveProtocolin interfaceComConnectionHandler<SocketChannel>
-