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)
-
-
-
Method Detail
-
createConnectionListener
ComConnectionListener<C> createConnectionListener(InetSocketAddress address)
-
openConnection
C openConnection(InetSocketAddress address)
-
prepareReading
void prepareReading(C connection)
-
prepareWriting
void prepareWriting(C connection)
-
close
void close(C connection)
-
closeReading
void closeReading(C connection)
-
closeWriting
void closeWriting(C connection)
-
read
void read(C connction, ByteBuffer buffer)
-
write
void write(C connction, ByteBuffer buffer)
-
writeChunk
default void writeChunk(C connection, ByteBuffer headerBuffer, ByteBuffer[] buffers)
-
sendProtocol
void sendProtocol(C connection, ComProtocol protocol, ComProtocolStringConverter stringConverter)
-
receiveProtocol
ComProtocol receiveProtocol(C connection, ComProtocolStringConverter stringConverter)
-
Default
static ComConnectionHandler.Default Default()
-
-