Package com.privatechain.core.event
Class BlockchainEvent.PeerConnectedEvent
java.lang.Object
com.privatechain.core.event.BlockchainEvent
com.privatechain.core.event.BlockchainEvent.PeerConnectedEvent
- Enclosing class:
BlockchainEvent
Fired when a new peer successfully establishes a TCP connection to this node.
The peer has already passed the allowlist check at this point; the event signals that the connection is active and the peer is ready to exchange messages.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.privatechain.core.event.BlockchainEvent
BlockchainEvent.BlockAddedEvent, BlockchainEvent.ForkDetectedEvent, BlockchainEvent.PeerConnectedEvent, BlockchainEvent.PeerDisconnectedEvent, BlockchainEvent.TransactionSubmittedEvent -
Constructor Summary
ConstructorsConstructorDescriptionPeerConnectedEvent(String peerId, String address) Constructs aPeerConnectedEvent. -
Method Summary
Methods inherited from class com.privatechain.core.event.BlockchainEvent
getOccurredAt
-
Constructor Details
-
PeerConnectedEvent
Constructs aPeerConnectedEvent.- Parameters:
peerId- unique peer identifier (non-null, non-blank)address- network address string (non-null, non-blank)- Throws:
NullPointerException- if peerId or address is nullIllegalArgumentException- if peerId or address is blank
-
-
Method Details