com.hazelcast.spi.impl.transceiver.impl
public class PacketTransceiverImpl extends Object implements PacketTransceiver
PacketTransceiver
implementation.Constructor and Description |
---|
PacketTransceiverImpl(Node node,
ILogger logger,
InternalOperationService operationService,
InternalEventService eventService,
WanReplicationService wanReplicationService,
ExecutionService executionService) |
Modifier and Type | Method and Description |
---|---|
void |
receive(Packet packet)
Lets the PacketTransceiver receive a packet.
|
boolean |
transmit(Packet packet,
Address target)
Retries sending packet maximum 5 times until connection to target becomes available.
|
boolean |
transmit(Packet packet,
Connection connection)
Transmits a packet to a certain connection.
|
public PacketTransceiverImpl(Node node, ILogger logger, InternalOperationService operationService, InternalEventService eventService, WanReplicationService wanReplicationService, ExecutionService executionService)
public boolean transmit(Packet packet, Connection connection)
PacketTransceiver
transmit
in interface PacketTransceiver
packet
- The Packet to transmit.connection
- The connection to where the Packet should be transmitted.public void receive(Packet packet)
PacketTransceiver
receive
in interface PacketTransceiver
packet
- the Packet to receive.public boolean transmit(Packet packet, Address target)
transmit
in interface PacketTransceiver
packet
- The Packet to transmit.target
- The address of the target machine where the Packet should be transmitted.PacketTransceiver.transmit(com.hazelcast.nio.Packet, com.hazelcast.nio.Connection)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.