void |
INetwork.addPeer(Host peerHost) |
Adds a new peer connection to the network layer.
|
void |
NetworkService.addPeer(Host peer) |
|
int |
Host.compareTo(Host other) |
|
void |
IMessageConsumer.deliverMessage(short msgCode,
T msg,
Host from) |
Method that is called to deliver a message from the network layer to the application
|
void |
INetwork.forceRemovePeer(Host peerHost) |
Removes the peer from the network layer, which closes any open connections.
|
void |
NetworkService.forceRemovePeer(Host peerHost) |
|
boolean |
INetwork.isConnectionActive(Host peerHost) |
Checks if the is an open connection to a peer
|
boolean |
NetworkService.isConnectionActive(Host peerHost) |
|
void |
INodeListener.nodeConnectionReestablished(Host peerHost) |
Method that is called when the connection to a node was lost and re-established
|
void |
INodeListener.nodeDown(Host peer) |
Method called when a node is detected as down
|
void |
INodeListener.nodeUp(Host peer) |
Method called when a nod is detected as up
|
void |
INetwork.removePeer(Host peerHost) |
Removes the peer from the network layer, waiting until any pending messages are sent
(or the connection attempt fails) before closing.
|
void |
NetworkService.removePeer(Host peerHost) |
|
void |
INetwork.sendMessage(short msgCode,
Object msg,
Host to) |
Sends a message to a peer
|
void |
INetwork.sendMessage(short msgCode,
Object payload,
Host to,
boolean newChannel) |
Sends a message to a peer, possibly using a dedicated channel
|
void |
NetworkService.sendMessage(short msgCode,
Object payload,
Host to) |
|
void |
NetworkService.sendMessage(short msgCode,
Object payload,
Host to,
boolean newChannel) |
|