@Deprecated public abstract class AbstractPeerConnectionEventListener extends Object implements PeerConnectionEventListener
| Constructor and Description |
|---|
AbstractPeerConnectionEventListener()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onPeerConnected(Peer peer,
int peerCount)
Deprecated.
Called when a peer is connected.
|
void |
onPeerDisconnected(Peer peer,
int peerCount)
Deprecated.
Called when a peer is disconnected.
|
void |
onPeersDiscovered(Set<PeerAddress> peerAddresses)
Deprecated.
Called when peers are discovered, this happens at startup of
PeerGroup or if we run out of
suitable Peers to connect to. |
public AbstractPeerConnectionEventListener()
public void onPeersDiscovered(Set<PeerAddress> peerAddresses)
PeerDiscoveredEventListenerCalled when peers are discovered, this happens at startup of PeerGroup or if we run out of
suitable Peers to connect to.
onPeersDiscovered in interface PeerDiscoveredEventListenerpeerAddresses - the set of discovered PeerAddressespublic void onPeerConnected(Peer peer, int peerCount)
PeerConnectedEventListenerPeer instead of a PeerGroup,
peerCount will always be 1.onPeerConnected in interface PeerConnectedEventListenerpeerCount - the total number of connected peerspublic void onPeerDisconnected(Peer peer, int peerCount)
PeerConnectionEventListenerPeerGroup and the group is in the process of shutting down. If this listener is registered to a
Peer instead of a PeerGroup, peerCount will always be 0. This handler can be called without
a corresponding invocation of onPeerConnected if the initial connection is never successful.onPeerDisconnected in interface PeerConnectionEventListeneronPeerDisconnected in interface PeerDisconnectedEventListenerpeerCount - the total number of connected peersCopyright © 2018. All rights reserved.