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 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, wait
-
Methods inherited from interface one.microstream.com.ComConnectionHandler
writeChunk
-
-
-
-
Method Detail
-
createConnectionListener
public ComConnectionListener<SocketChannel> createConnectionListener(InetSocketAddress address)
- Specified by:
createConnectionListenerin interfaceComConnectionHandler<SocketChannel>
-
openConnection
public SocketChannel openConnection(InetSocketAddress address)
- Specified by:
openConnectionin interfaceComConnectionHandler<SocketChannel>
-
prepareReading
public void prepareReading(SocketChannel connection)
- Specified by:
prepareReadingin interfaceComConnectionHandler<SocketChannel>
-
prepareWriting
public void prepareWriting(SocketChannel connection)
- Specified by:
prepareWritingin interfaceComConnectionHandler<SocketChannel>
-
close
public void close(SocketChannel connection)
- Specified by:
closein interfaceComConnectionHandler<SocketChannel>
-
closeReading
public void closeReading(SocketChannel connection)
- Specified by:
closeReadingin interfaceComConnectionHandler<SocketChannel>
-
closeWriting
public void closeWriting(SocketChannel connection)
- Specified by:
closeWritingin interfaceComConnectionHandler<SocketChannel>
-
read
public void read(SocketChannel connction, ByteBuffer buffer)
- Specified by:
readin interfaceComConnectionHandler<SocketChannel>
-
write
public void write(SocketChannel connction, ByteBuffer buffer)
- 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>
-
-