Class SessionState.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class SessionState.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for SessionState instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
sessionId
public Instant
sessionStartTime
public Instant
lastReceivedMessageTime
public HoldingIdentity
counterpartyIdentity
public HoldingIdentity.Builder
counterpartyIdentityBuilder
public boolean
requireClose
public SessionProcessState
receivedEventsState
public SessionProcessState.Builder
receivedEventsStateBuilder
public SessionProcessState
sendEventsState
public SessionProcessState.Builder
sendEventsStateBuilder
public SessionStateType
status
public boolean
hasScheduledCleanup
public KeyValuePairList
sessionProperties
public KeyValuePairList.Builder
sessionPropertiesBuilder
-
Method Summary
Modifier and Type Method Description String
getSessionId()
Gets the value of the 'sessionId' field. SessionState.Builder
setSessionId(String value)
Sets the value of the 'sessionId' field. Instant
getSessionStartTime()
Gets the value of the 'sessionStartTime' field. SessionState.Builder
setSessionStartTime(Instant value)
Sets the value of the 'sessionStartTime' field. Instant
getLastReceivedMessageTime()
Gets the value of the 'lastReceivedMessageTime' field. SessionState.Builder
setLastReceivedMessageTime(Instant value)
Sets the value of the 'lastReceivedMessageTime' field. HoldingIdentity
getCounterpartyIdentity()
Gets the value of the 'counterpartyIdentity' field. SessionState.Builder
setCounterpartyIdentity(HoldingIdentity value)
Sets the value of the 'counterpartyIdentity' field. HoldingIdentity.Builder
getCounterpartyIdentityBuilder()
Gets the Builder instance for the 'counterpartyIdentity' field and creates one if it doesn't exist yet. SessionState.Builder
setCounterpartyIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'counterpartyIdentity' field Identity of the counterparty in the session. boolean
getRequireClose()
Gets the value of the 'requireClose' field. SessionState.Builder
setRequireClose(boolean value)
Sets the value of the 'requireClose' field. SessionProcessState
getReceivedEventsState()
Gets the value of the 'receivedEventsState' field. SessionState.Builder
setReceivedEventsState(SessionProcessState value)
Sets the value of the 'receivedEventsState' field. SessionProcessState.Builder
getReceivedEventsStateBuilder()
Gets the Builder instance for the 'receivedEventsState' field and creates one if it doesn't exist yet. SessionState.Builder
setReceivedEventsStateBuilder(SessionProcessState.Builder value)
Sets the Builder instance for the 'receivedEventsState' field Record the highest contiguous sequence number received from the counterparty. SessionProcessState
getSendEventsState()
Gets the value of the 'sendEventsState' field. SessionState.Builder
setSendEventsState(SessionProcessState value)
Sets the value of the 'sendEventsState' field. SessionProcessState.Builder
getSendEventsStateBuilder()
Gets the Builder instance for the 'sendEventsState' field and creates one if it doesn't exist yet. SessionState.Builder
setSendEventsStateBuilder(SessionProcessState.Builder value)
Sets the Builder instance for the 'sendEventsState' field Record the sequence number of the last event sent to the counterparty. SessionStateType
getStatus()
Gets the value of the 'status' field. SessionState.Builder
setStatus(SessionStateType value)
Sets the value of the 'status' field. boolean
getHasScheduledCleanup()
Gets the value of the 'hasScheduledCleanup' field. SessionState.Builder
setHasScheduledCleanup(boolean value)
Sets the value of the 'hasScheduledCleanup' field. KeyValuePairList
getSessionProperties()
Gets the value of the 'sessionProperties' field. SessionState.Builder
setSessionProperties(KeyValuePairList value)
Sets the value of the 'sessionProperties' field. KeyValuePairList.Builder
getSessionPropertiesBuilder()
Gets the Builder instance for the 'sessionProperties' field and creates one if it doesn't exist yet. SessionState.Builder
setSessionPropertiesBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'sessionProperties' field A map of context properties related to this flow session. boolean
hasSessionId()
Checks whether the 'sessionId' field has been set. SessionState.Builder
clearSessionId()
Clears the value of the 'sessionId' field. boolean
hasSessionStartTime()
Checks whether the 'sessionStartTime' field has been set. SessionState.Builder
clearSessionStartTime()
Clears the value of the 'sessionStartTime' field. boolean
hasLastReceivedMessageTime()
Checks whether the 'lastReceivedMessageTime' field has been set. SessionState.Builder
clearLastReceivedMessageTime()
Clears the value of the 'lastReceivedMessageTime' field. boolean
hasCounterpartyIdentity()
Checks whether the 'counterpartyIdentity' field has been set. boolean
hasCounterpartyIdentityBuilder()
Checks whether the 'counterpartyIdentity' field has an active Builder instance Identity of the counterparty in the session. SessionState.Builder
clearCounterpartyIdentity()
Clears the value of the 'counterpartyIdentity' field. boolean
hasRequireClose()
Checks whether the 'requireClose' field has been set. SessionState.Builder
clearRequireClose()
Clears the value of the 'requireClose' field. boolean
hasReceivedEventsState()
Checks whether the 'receivedEventsState' field has been set. boolean
hasReceivedEventsStateBuilder()
Checks whether the 'receivedEventsState' field has an active Builder instance Record the highest contiguous sequence number received from the counterparty. SessionState.Builder
clearReceivedEventsState()
Clears the value of the 'receivedEventsState' field. boolean
hasSendEventsState()
Checks whether the 'sendEventsState' field has been set. boolean
hasSendEventsStateBuilder()
Checks whether the 'sendEventsState' field has an active Builder instance Record the sequence number of the last event sent to the counterparty. SessionState.Builder
clearSendEventsState()
Clears the value of the 'sendEventsState' field. boolean
hasStatus()
Checks whether the 'status' field has been set. SessionState.Builder
clearStatus()
Clears the value of the 'status' field. boolean
hasHasScheduledCleanup()
Checks whether the 'hasScheduledCleanup' field has been set. SessionState.Builder
clearHasScheduledCleanup()
Clears the value of the 'hasScheduledCleanup' field. boolean
hasSessionProperties()
Checks whether the 'sessionProperties' field has been set. boolean
hasSessionPropertiesBuilder()
Checks whether the 'sessionProperties' field has an active Builder instance A map of context properties related to this flow session. SessionState.Builder
clearSessionProperties()
Clears the value of the 'sessionProperties' field. SessionState
build()
-
-
Method Detail
-
getSessionId
String getSessionId()
Gets the value of the 'sessionId' field. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
-
setSessionId
SessionState.Builder setSessionId(String value)
Sets the value of the 'sessionId' field. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
- Parameters:
value
- The value of 'sessionId'.
-
getSessionStartTime
Instant getSessionStartTime()
Gets the value of the 'sessionStartTime' field. Time ([Instant]) in milliseconds when the session was created
-
setSessionStartTime
SessionState.Builder setSessionStartTime(Instant value)
Sets the value of the 'sessionStartTime' field. Time ([Instant]) in milliseconds when the session was created
- Parameters:
value
- The value of 'sessionStartTime'.
-
getLastReceivedMessageTime
Instant getLastReceivedMessageTime()
Gets the value of the 'lastReceivedMessageTime' field. Time ([Instant]) in milliseconds when the last session event was received from a counterparty
-
setLastReceivedMessageTime
SessionState.Builder setLastReceivedMessageTime(Instant value)
Sets the value of the 'lastReceivedMessageTime' field. Time ([Instant]) in milliseconds when the last session event was received from a counterparty
- Parameters:
value
- The value of 'lastReceivedMessageTime'.
-
getCounterpartyIdentity
HoldingIdentity getCounterpartyIdentity()
Gets the value of the 'counterpartyIdentity' field. Identity of the counterparty in the session.
-
setCounterpartyIdentity
SessionState.Builder setCounterpartyIdentity(HoldingIdentity value)
Sets the value of the 'counterpartyIdentity' field. Identity of the counterparty in the session.
- Parameters:
value
- The value of 'counterpartyIdentity'.
-
getCounterpartyIdentityBuilder
HoldingIdentity.Builder getCounterpartyIdentityBuilder()
Gets the Builder instance for the 'counterpartyIdentity' field and creates one if it doesn't exist yet. Identity of the counterparty in the session.
-
setCounterpartyIdentityBuilder
SessionState.Builder setCounterpartyIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'counterpartyIdentity' field Identity of the counterparty in the session.
- Parameters:
value
- The builder instance that must be set.
-
getRequireClose
boolean getRequireClose()
Gets the value of the 'requireClose' field. True if the user has set requireClose to be true when calling initiate flow. False otherwise.
-
setRequireClose
SessionState.Builder setRequireClose(boolean value)
Sets the value of the 'requireClose' field. True if the user has set requireClose to be true when calling initiate flow. False otherwise.
- Parameters:
value
- The value of 'requireClose'.
-
getReceivedEventsState
SessionProcessState getReceivedEventsState()
Gets the value of the 'receivedEventsState' field. Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
-
setReceivedEventsState
SessionState.Builder setReceivedEventsState(SessionProcessState value)
Sets the value of the 'receivedEventsState' field. Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
- Parameters:
value
- The value of 'receivedEventsState'.
-
getReceivedEventsStateBuilder
SessionProcessState.Builder getReceivedEventsStateBuilder()
Gets the Builder instance for the 'receivedEventsState' field and creates one if it doesn't exist yet. Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
-
setReceivedEventsStateBuilder
SessionState.Builder setReceivedEventsStateBuilder(SessionProcessState.Builder value)
Sets the Builder instance for the 'receivedEventsState' field Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
- Parameters:
value
- The builder instance that must be set.
-
getSendEventsState
SessionProcessState getSendEventsState()
Gets the value of the 'sendEventsState' field. Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
-
setSendEventsState
SessionState.Builder setSendEventsState(SessionProcessState value)
Sets the value of the 'sendEventsState' field. Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
- Parameters:
value
- The value of 'sendEventsState'.
-
getSendEventsStateBuilder
SessionProcessState.Builder getSendEventsStateBuilder()
Gets the Builder instance for the 'sendEventsState' field and creates one if it doesn't exist yet. Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
-
setSendEventsStateBuilder
SessionState.Builder setSendEventsStateBuilder(SessionProcessState.Builder value)
Sets the Builder instance for the 'sendEventsState' field Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
- Parameters:
value
- The builder instance that must be set.
-
getStatus
SessionStateType getStatus()
Gets the value of the 'status' field. The status of the session.
-
setStatus
SessionState.Builder setStatus(SessionStateType value)
Sets the value of the 'status' field. The status of the session.
- Parameters:
value
- The value of 'status'.
-
getHasScheduledCleanup
boolean getHasScheduledCleanup()
Gets the value of the 'hasScheduledCleanup' field. Whether the session state has already scheduled a cleanup event with the flow mapper.
-
setHasScheduledCleanup
SessionState.Builder setHasScheduledCleanup(boolean value)
Sets the value of the 'hasScheduledCleanup' field. Whether the session state has already scheduled a cleanup event with the flow mapper.
- Parameters:
value
- The value of 'hasScheduledCleanup'.
-
getSessionProperties
KeyValuePairList getSessionProperties()
Gets the value of the 'sessionProperties' field. A map of context properties related to this flow session. This contains information such as protocol name and the version running.
-
setSessionProperties
SessionState.Builder setSessionProperties(KeyValuePairList value)
Sets the value of the 'sessionProperties' field. A map of context properties related to this flow session. This contains information such as protocol name and the version running.
- Parameters:
value
- The value of 'sessionProperties'.
-
getSessionPropertiesBuilder
KeyValuePairList.Builder getSessionPropertiesBuilder()
Gets the Builder instance for the 'sessionProperties' field and creates one if it doesn't exist yet. A map of context properties related to this flow session. This contains information such as protocol name and the version running.
-
setSessionPropertiesBuilder
SessionState.Builder setSessionPropertiesBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'sessionProperties' field A map of context properties related to this flow session. This contains information such as protocol name and the version running.
- Parameters:
value
- The builder instance that must be set.
-
hasSessionId
boolean hasSessionId()
Checks whether the 'sessionId' field has been set. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
-
clearSessionId
SessionState.Builder clearSessionId()
Clears the value of the 'sessionId' field. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
-
hasSessionStartTime
boolean hasSessionStartTime()
Checks whether the 'sessionStartTime' field has been set. Time ([Instant]) in milliseconds when the session was created
-
clearSessionStartTime
SessionState.Builder clearSessionStartTime()
Clears the value of the 'sessionStartTime' field. Time ([Instant]) in milliseconds when the session was created
-
hasLastReceivedMessageTime
boolean hasLastReceivedMessageTime()
Checks whether the 'lastReceivedMessageTime' field has been set. Time ([Instant]) in milliseconds when the last session event was received from a counterparty
-
clearLastReceivedMessageTime
SessionState.Builder clearLastReceivedMessageTime()
Clears the value of the 'lastReceivedMessageTime' field. Time ([Instant]) in milliseconds when the last session event was received from a counterparty
-
hasCounterpartyIdentity
boolean hasCounterpartyIdentity()
Checks whether the 'counterpartyIdentity' field has been set. Identity of the counterparty in the session.
-
hasCounterpartyIdentityBuilder
boolean hasCounterpartyIdentityBuilder()
Checks whether the 'counterpartyIdentity' field has an active Builder instance Identity of the counterparty in the session.
-
clearCounterpartyIdentity
SessionState.Builder clearCounterpartyIdentity()
Clears the value of the 'counterpartyIdentity' field. Identity of the counterparty in the session.
-
hasRequireClose
boolean hasRequireClose()
Checks whether the 'requireClose' field has been set. True if the user has set requireClose to be true when calling initiate flow. False otherwise.
-
clearRequireClose
SessionState.Builder clearRequireClose()
Clears the value of the 'requireClose' field. True if the user has set requireClose to be true when calling initiate flow. False otherwise.
-
hasReceivedEventsState
boolean hasReceivedEventsState()
Checks whether the 'receivedEventsState' field has been set. Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
-
hasReceivedEventsStateBuilder
boolean hasReceivedEventsStateBuilder()
Checks whether the 'receivedEventsState' field has an active Builder instance Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
-
clearReceivedEventsState
SessionState.Builder clearReceivedEventsState()
Clears the value of the 'receivedEventsState' field. Record the highest contiguous sequence number received from the counterparty. Record all events received but not yet processed by this party's client code.
-
hasSendEventsState
boolean hasSendEventsState()
Checks whether the 'sendEventsState' field has been set. Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
-
hasSendEventsStateBuilder
boolean hasSendEventsStateBuilder()
Checks whether the 'sendEventsState' field has an active Builder instance Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
-
clearSendEventsState
SessionState.Builder clearSendEventsState()
Clears the value of the 'sendEventsState' field. Record the sequence number of the last event sent to the counterparty. Record all events to be sent to the counterparty.
-
hasStatus
boolean hasStatus()
Checks whether the 'status' field has been set. The status of the session.
-
clearStatus
SessionState.Builder clearStatus()
Clears the value of the 'status' field. The status of the session.
-
hasHasScheduledCleanup
boolean hasHasScheduledCleanup()
Checks whether the 'hasScheduledCleanup' field has been set. Whether the session state has already scheduled a cleanup event with the flow mapper.
-
clearHasScheduledCleanup
SessionState.Builder clearHasScheduledCleanup()
Clears the value of the 'hasScheduledCleanup' field. Whether the session state has already scheduled a cleanup event with the flow mapper.
-
hasSessionProperties
boolean hasSessionProperties()
Checks whether the 'sessionProperties' field has been set. A map of context properties related to this flow session. This contains information such as protocol name and the version running.
-
hasSessionPropertiesBuilder
boolean hasSessionPropertiesBuilder()
Checks whether the 'sessionProperties' field has an active Builder instance A map of context properties related to this flow session. This contains information such as protocol name and the version running.
-
clearSessionProperties
SessionState.Builder clearSessionProperties()
Clears the value of the 'sessionProperties' field. A map of context properties related to this flow session. This contains information such as protocol name and the version running.
-
build
SessionState build()
-
-
-
-