public class SpinningSocketReader extends AbstractHandler implements SocketReader
connection, connectionManager, ioService, logger| Constructor and Description |
|---|
SpinningSocketReader(TcpIpConnection connection,
MetricsRegistry metricsRegistry,
ILogger logger) |
| 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.
|
void |
read() |
onFailurepublic SpinningSocketReader(TcpIpConnection connection, MetricsRegistry metricsRegistry, ILogger logger)
public long getLastReadTimeMillis()
SocketReaderClock.currentTimeMillis() a read of the socket was done.getLastReadTimeMillis in interface SocketReaderpublic Counter getNormalFramesReadCounter()
SocketReadergetNormalFramesReadCounter in interface SocketReaderpublic Counter getPriorityFramesReadCounter()
SocketReadergetPriorityFramesReadCounter in interface SocketReaderpublic void init()
SocketReaderinit in interface SocketReaderpublic void close()
SocketReaderTcpIpConnection#close() method.close in interface SocketReaderCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.