public class AsyncResponsePacketHandler extends Object implements PacketHandler
PacketHandler
for the
actual processing.
The reason that the IO thread doesn't immediately deals with the response is that deserializing the
Response
and let the invocation-future
deal with the response can be rather expensive currently.Constructor and Description |
---|
AsyncResponsePacketHandler(HazelcastThreadGroup threadGroup,
ILogger logger,
PacketHandler responsePacketHandler) |
Modifier and Type | Method and Description |
---|---|
int |
getQueueSize() |
void |
handle(Packet packet)
Signals the PacketHandler that there is a packet to be handled.
|
void |
shutdown() |
public AsyncResponsePacketHandler(HazelcastThreadGroup threadGroup, ILogger logger, PacketHandler responsePacketHandler)
public int getQueueSize()
public void shutdown()
public void handle(Packet packet)
PacketHandler
handle
in interface PacketHandler
packet
- the response packet to handleCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.