Interface PeerConnectedEventListener


  • public interface PeerConnectedEventListener

    Implementors can listen to events indicating a new peer connecting.

    • Method Detail

      • onPeerConnected

        void onPeerConnected​(Peer peer,
                             int peerCount)
        Called when a peer is connected. If this listener is registered to a Peer instead of a PeerGroup, peerCount will always be 1.
        Parameters:
        peer -
        peerCount - the total number of connected peers