com.hazelcast.spi.impl.transceiver
public interface PacketTransceiver
Packet
instances.
When it receives a Packet (from the IO system) it dispatches to the appropriate service:
Modifier and Type | Method and Description |
---|---|
void |
receive(Packet packet)
Lets the PacketTransceiver receive a packet.
|
boolean |
transmit(Packet packet,
Address target)
Transmits a packet to a certain address.
|
boolean |
transmit(Packet packet,
Connection connection)
Transmits a packet to a certain connection.
|
boolean transmit(Packet packet, Connection connection)
packet
- The Packet to transmit.connection
- The connection to where the Packet should be transmitted.boolean transmit(Packet packet, Address target)
packet
- The Packet to transmit.target
- The address of the target machine where the Packet should be transmitted.transmit(com.hazelcast.nio.Packet, com.hazelcast.nio.Connection)
void receive(Packet packet)
packet
- the Packet to receive.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.