Package one.microstream.com
Class ComConnectionHandler.Default
- java.lang.Object
-
- one.microstream.com.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.com.ComConnectionHandler
ComConnectionHandler.Default
-
-
Constructor Summary
Constructors Constructor Description 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.com.ComConnectionHandler
writeChunk
-
-
-
-
Method Detail
-
createConnectionListener
public ComConnectionListener<SocketChannel> createConnectionListener(InetSocketAddress address)
- Specified by:
createConnectionListener
in interfaceComConnectionHandler<SocketChannel>
-
openConnection
public SocketChannel openConnection(InetSocketAddress address)
- Specified by:
openConnection
in interfaceComConnectionHandler<SocketChannel>
-
prepareReading
public void prepareReading(SocketChannel connection)
- Specified by:
prepareReading
in interfaceComConnectionHandler<SocketChannel>
-
prepareWriting
public void prepareWriting(SocketChannel connection)
- Specified by:
prepareWriting
in interfaceComConnectionHandler<SocketChannel>
-
close
public void close(SocketChannel connection)
- Specified by:
close
in interfaceComConnectionHandler<SocketChannel>
-
closeReading
public void closeReading(SocketChannel connection)
- Specified by:
closeReading
in interfaceComConnectionHandler<SocketChannel>
-
closeWriting
public void closeWriting(SocketChannel connection)
- Specified by:
closeWriting
in interfaceComConnectionHandler<SocketChannel>
-
read
public void read(SocketChannel connction, ByteBuffer buffer)
- Specified by:
read
in interfaceComConnectionHandler<SocketChannel>
-
write
public void write(SocketChannel connction, ByteBuffer buffer)
- 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>
-
-