Class PeerDirectEvent

  • All Implemented Interfaces:
    Event, PeerEvent

    public class PeerDirectEvent
    extends Object
    This event signals that the node has established a direct connection to a peer.

    This is an immutable object.

    • Field Detail

      • peer

        protected final Peer peer
    • Constructor Detail

      • PeerDirectEvent

        public PeerDirectEvent​(Peer peer)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPeer

        public Peer getPeer()
        Description copied from interface: PeerEvent
        Returns the peer to which this event refers.
        Specified by:
        getPeer in interface PeerEvent
        Returns:
        the peer to which this event refers.