public interface SocketReader
ByteBuffer
. Once the data is read into the ByteBuffer, this ByteBuffer is passed to the ReadHandler
that takes care of the actual processing of the incoming data.
Each TcpIpConnection
has its own SocketReader
instance.
There are many different flavors of SocketReader:
IOThreadingModel.newSocketReader(TcpIpConnection)
.
Before Hazelcast 3.6 the name of this interface was ReadHandler.ReadHandler
,
SocketWriter
,
IOThreadingModel
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this SocketReader.
|
long |
getLastReadTimeMillis()
Returns the last
Clock.currentTimeMillis() a read of the socket was done. |
Counter |
getNormalFramesReadCounter()
Gets the Counter that counts the number of normal packets that have been read.
|
Counter |
getPriorityFramesReadCounter()
Gets the Counter that counts the number of priority packets that have been read.
|
void |
init()
Initializes this SocketReader.
|
long getLastReadTimeMillis()
Clock.currentTimeMillis()
a read of the socket was done.Counter getNormalFramesReadCounter()
Counter getPriorityFramesReadCounter()
void init()
void close()
TcpIpConnection#close()
method.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.