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 void
close(SocketChannel connection)
void
closeReading(SocketChannel connection)
void
closeWriting(SocketChannel connection)
ComConnectionListener<SocketChannel>
createConnectionListener(InetSocketAddress address)
SocketChannel
openConnection(InetSocketAddress address)
void
prepareReading(SocketChannel connection)
void
prepareWriting(SocketChannel connection)
void
read(SocketChannel connction, ByteBuffer buffer)
ComProtocol
receiveProtocol(SocketChannel connection, ComProtocolStringConverter stringConverter)
void
sendProtocol(SocketChannel connection, ComProtocol protocol, ComProtocolStringConverter stringConverter)
void
write(SocketChannel connction, ByteBuffer buffer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.communication.types.ComConnectionHandler
writeChunk
-
Method Details
-
createConnectionListener
- Specified by:
createConnectionListener
in interfaceComConnectionHandler<SocketChannel>
-
openConnection
- Specified by:
openConnection
in interfaceComConnectionHandler<SocketChannel>
-
prepareReading
- Specified by:
prepareReading
in interfaceComConnectionHandler<SocketChannel>
-
prepareWriting
- Specified by:
prepareWriting
in interfaceComConnectionHandler<SocketChannel>
-
close
- Specified by:
close
in interfaceComConnectionHandler<SocketChannel>
-
closeReading
- Specified by:
closeReading
in interfaceComConnectionHandler<SocketChannel>
-
closeWriting
- Specified by:
closeWriting
in interfaceComConnectionHandler<SocketChannel>
-
read
- Specified by:
read
in interfaceComConnectionHandler<SocketChannel>
-
write
- Specified by:
write
in interfaceComConnectionHandler<SocketChannel>
-
sendProtocol
public void sendProtocol(SocketChannel connection, ComProtocol protocol, ComProtocolStringConverter stringConverter)- Specified by:
sendProtocol
in interfaceComConnectionHandler<SocketChannel>
-
receiveProtocol
public ComProtocol receiveProtocol(SocketChannel connection, ComProtocolStringConverter stringConverter)- Specified by:
receiveProtocol
in interfaceComConnectionHandler<SocketChannel>
-