Package one.microstream.com
Interface ComConnectionHandler<C>
- All Known Implementing Classes:
ComConnectionHandler.Default
public interface ComConnectionHandler<C>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComConnectionHandler.Default
-
Method Summary
Modifier and Type Method Description void
close(C connection)
void
closeReading(C connection)
void
closeWriting(C connection)
ComConnectionListener<C>
createConnectionListener(InetSocketAddress address)
static ComConnectionHandler.Default
Default()
C
openConnection(InetSocketAddress address)
void
prepareReading(C connection)
void
prepareWriting(C connection)
void
read(C connction, ByteBuffer buffer)
ComProtocol
receiveProtocol(C connection, ComProtocolStringConverter stringConverter)
void
sendProtocol(C connection, ComProtocol protocol, ComProtocolStringConverter stringConverter)
void
write(C connction, ByteBuffer buffer)
default void
writeChunk(C connection, ByteBuffer headerBuffer, ByteBuffer[] buffers)