public static class TwoPartyDealFlow.Handshake<T>
This object is serialised to the network and is the first flow message the seller sends to the buyer.
Constructor and Description |
---|
Handshake(T payload,
AnonymousParty primaryIdentity,
AnonymousParty secondaryIdentity)
This object is serialised to the network and is the first flow message the seller sends to the buyer.
|
Modifier and Type | Method and Description |
---|---|
T |
component1() |
AnonymousParty |
component2()
the
|
AnonymousParty |
component3()
the
|
TwoPartyDealFlow.Handshake<T> |
copy(T payload,
AnonymousParty primaryIdentity,
AnonymousParty secondaryIdentity)
This object is serialised to the network and is the first flow message the seller sends to the buyer.
|
boolean |
equals(java.lang.Object p) |
T |
getPayload() |
AnonymousParty |
getPrimaryIdentity()
the
|
AnonymousParty |
getSecondaryIdentity()
the
|
int |
hashCode() |
java.lang.String |
toString() |
public Handshake(T payload, AnonymousParty primaryIdentity, AnonymousParty secondaryIdentity)
This object is serialised to the network and is the first flow message the seller sends to the buyer.
primaryIdentity
- the (anonymised) identity of the participant that initiates communication/handshake.secondaryIdentity
- the (anonymised) identity of the participant that is recipient of initial communication.primaryIdentity
- the (anonymised) identity of the participant that initiates communication/handshake.secondaryIdentity
- the (anonymised) identity of the participant that is recipient of initial communication.public T getPayload()
public AnonymousParty getPrimaryIdentity()
the
(anonymised) identity of the participant that initiates communication/handshake.
public AnonymousParty getSecondaryIdentity()
the
(anonymised) identity of the participant that is recipient of initial communication.
public T component1()
public AnonymousParty component2()
the
(anonymised) identity of the participant that initiates communication/handshake.
public AnonymousParty component3()
the
(anonymised) identity of the participant that is recipient of initial communication.
public TwoPartyDealFlow.Handshake<T> copy(T payload, AnonymousParty primaryIdentity, AnonymousParty secondaryIdentity)
This object is serialised to the network and is the first flow message the seller sends to the buyer.
primaryIdentity
- the (anonymised) identity of the participant that initiates communication/handshake.secondaryIdentity
- the (anonymised) identity of the participant that is recipient of initial communication.public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)