|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMirrorMapConnectionListener
Receives notifications about the connection status of a local and remote
MirrorMap
instances.
Local connection events signal when local mirror maps are connected or disconnected from the server. The remote connection events signal when peer mirror maps connect or disconnect from the server.
Knowing about peer mirror map connect/disconnects is useful if one of the peers is actually sourcing the data for the map; in situations where it knows there are no further peers of the map it can stop feeding the map with data from external systems, say.
Method Summary | |
---|---|
void |
localConnected(String mirrorMapName)
Received when a local MirrorMap is connected to its server. |
void |
localDisconnected(String mirrorMapName)
Received when a MirrorMap is disconnected from its server. |
void |
peerConnected(String mirrorMapName)
Received when any MirrorMap connects to the server. |
void |
peerDisconnected(String mirrorMapName)
Received when any MirrorMap disconnects from the server. |
Method Detail |
---|
void localConnected(String mirrorMapName)
MirrorMap
is connected to its server. The
instance will receive remote changes.
mirrorMapName
- the name of the mirror map that has connectedvoid localDisconnected(String mirrorMapName)
MirrorMap
is disconnected from its server. The
instance will no longer be receiving remote changes.
mirrorMapName
- the name of the mirror map that was disconnectedvoid peerConnected(String mirrorMapName)
MirrorMap
connects to the server. This is
triggered by remote peers as well as the local instance connecting.
mirrorMapName
- the name of the mirror map that has connectedvoid peerDisconnected(String mirrorMapName)
MirrorMap
disconnects from the server. This is
only triggered by remote peer disconnects. Disconnecting the local
instance will not trigger this.
mirrorMapName
- the name of the mirror map that has disconnected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |