Class FlowState.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class FlowState.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for FlowState instances.
-
-
Field Summary
Fields Modifier and Type Field Description public ByteBuffer
fiber
public FlowStartContext
flowStartContext
public FlowStartContext.Builder
flowStartContextBuilder
public ExternalEventState
externalEventState
public ExternalEventState.Builder
externalEventStateBuilder
public List<SessionState>
sessions
public List<FlowStackItem>
flowStackItems
public WaitingFor
waitingFor
public WaitingFor.Builder
waitingForBuilder
public int
suspendCount
public String
suspendedOn
-
Method Summary
Modifier and Type Method Description ByteBuffer
getFiber()
Gets the value of the 'fiber' field. FlowState.Builder
setFiber(ByteBuffer value)
Sets the value of the 'fiber' field. FlowStartContext
getFlowStartContext()
Gets the value of the 'flowStartContext' field. FlowState.Builder
setFlowStartContext(FlowStartContext value)
Sets the value of the 'flowStartContext' field. FlowStartContext.Builder
getFlowStartContextBuilder()
Gets the Builder instance for the 'flowStartContext' field and creates one if it doesn't exist yet. FlowState.Builder
setFlowStartContextBuilder(FlowStartContext.Builder value)
Sets the Builder instance for the 'flowStartContext' field Context data captured when the flow was started. ExternalEventState
getExternalEventState()
Gets the value of the 'externalEventState' field. FlowState.Builder
setExternalEventState(ExternalEventState value)
Sets the value of the 'externalEventState' field. ExternalEventState.Builder
getExternalEventStateBuilder()
Gets the Builder instance for the 'externalEventState' field and creates one if it doesn't exist yet. FlowState.Builder
setExternalEventStateBuilder(ExternalEventState.Builder value)
Sets the Builder instance for the 'externalEventState' field Active external event request. List<SessionState>
getSessions()
Gets the value of the 'sessions' field. FlowState.Builder
setSessions(List<SessionState> value)
Sets the value of the 'sessions' field. List<FlowStackItem>
getFlowStackItems()
Gets the value of the 'flowStackItems' field. FlowState.Builder
setFlowStackItems(List<FlowStackItem> value)
Sets the value of the 'flowStackItems' field. WaitingFor
getWaitingFor()
Gets the value of the 'waitingFor' field. FlowState.Builder
setWaitingFor(WaitingFor value)
Sets the value of the 'waitingFor' field. WaitingFor.Builder
getWaitingForBuilder()
Gets the Builder instance for the 'waitingFor' field and creates one if it doesn't exist yet. FlowState.Builder
setWaitingForBuilder(WaitingFor.Builder value)
Sets the Builder instance for the 'waitingFor' field What this flow requires in order to continue execution. int
getSuspendCount()
Gets the value of the 'suspendCount' field. FlowState.Builder
setSuspendCount(int value)
Sets the value of the 'suspendCount' field. String
getSuspendedOn()
Gets the value of the 'suspendedOn' field. FlowState.Builder
setSuspendedOn(String value)
Sets the value of the 'suspendedOn' field. boolean
hasFiber()
Checks whether the 'fiber' field has been set. FlowState.Builder
clearFiber()
Clears the value of the 'fiber' field. boolean
hasFlowStartContext()
Checks whether the 'flowStartContext' field has been set. boolean
hasFlowStartContextBuilder()
Checks whether the 'flowStartContext' field has an active Builder instance Context data captured when the flow was started. FlowState.Builder
clearFlowStartContext()
Clears the value of the 'flowStartContext' field. boolean
hasExternalEventState()
Checks whether the 'externalEventState' field has been set. boolean
hasExternalEventStateBuilder()
Checks whether the 'externalEventState' field has an active Builder instance Active external event request. FlowState.Builder
clearExternalEventState()
Clears the value of the 'externalEventState' field. boolean
hasSessions()
Checks whether the 'sessions' field has been set. FlowState.Builder
clearSessions()
Clears the value of the 'sessions' field. boolean
hasFlowStackItems()
Checks whether the 'flowStackItems' field has been set. FlowState.Builder
clearFlowStackItems()
Clears the value of the 'flowStackItems' field. boolean
hasWaitingFor()
Checks whether the 'waitingFor' field has been set. boolean
hasWaitingForBuilder()
Checks whether the 'waitingFor' field has an active Builder instance What this flow requires in order to continue execution. FlowState.Builder
clearWaitingFor()
Clears the value of the 'waitingFor' field. boolean
hasSuspendCount()
Checks whether the 'suspendCount' field has been set. FlowState.Builder
clearSuspendCount()
Clears the value of the 'suspendCount' field. boolean
hasSuspendedOn()
Checks whether the 'suspendedOn' field has been set. FlowState.Builder
clearSuspendedOn()
Clears the value of the 'suspendedOn' field. FlowState
build()
-
-
Method Detail
-
getFiber
ByteBuffer getFiber()
Gets the value of the 'fiber' field. Flow execution state, serialized at the point the flow was suspended.
-
setFiber
FlowState.Builder setFiber(ByteBuffer value)
Sets the value of the 'fiber' field. Flow execution state, serialized at the point the flow was suspended.
- Parameters:
value
- The value of 'fiber'.
-
getFlowStartContext
FlowStartContext getFlowStartContext()
Gets the value of the 'flowStartContext' field. Context data captured when the flow was started.
-
setFlowStartContext
FlowState.Builder setFlowStartContext(FlowStartContext value)
Sets the value of the 'flowStartContext' field. Context data captured when the flow was started.
- Parameters:
value
- The value of 'flowStartContext'.
-
getFlowStartContextBuilder
FlowStartContext.Builder getFlowStartContextBuilder()
Gets the Builder instance for the 'flowStartContext' field and creates one if it doesn't exist yet. Context data captured when the flow was started.
-
setFlowStartContextBuilder
FlowState.Builder setFlowStartContextBuilder(FlowStartContext.Builder value)
Sets the Builder instance for the 'flowStartContext' field Context data captured when the flow was started.
- Parameters:
value
- The builder instance that must be set.
-
getExternalEventState
ExternalEventState getExternalEventState()
Gets the value of the 'externalEventState' field. Active external event request. Null if there are no requests in progress.
-
setExternalEventState
FlowState.Builder setExternalEventState(ExternalEventState value)
Sets the value of the 'externalEventState' field. Active external event request. Null if there are no requests in progress.
- Parameters:
value
- The value of 'externalEventState'.
-
getExternalEventStateBuilder
ExternalEventState.Builder getExternalEventStateBuilder()
Gets the Builder instance for the 'externalEventState' field and creates one if it doesn't exist yet. Active external event request. Null if there are no requests in progress.
-
setExternalEventStateBuilder
FlowState.Builder setExternalEventStateBuilder(ExternalEventState.Builder value)
Sets the Builder instance for the 'externalEventState' field Active external event request. Null if there are no requests in progress.
- Parameters:
value
- The builder instance that must be set.
-
getSessions
List<SessionState> getSessions()
Gets the value of the 'sessions' field. The current open sessions created by/for the executing flow.
-
setSessions
FlowState.Builder setSessions(List<SessionState> value)
Sets the value of the 'sessions' field. The current open sessions created by/for the executing flow.
- Parameters:
value
- The value of 'sessions'.
-
getFlowStackItems
List<FlowStackItem> getFlowStackItems()
Gets the value of the 'flowStackItems' field. Used to track calls to sub-flows and their relationship to sessions.
-
setFlowStackItems
FlowState.Builder setFlowStackItems(List<FlowStackItem> value)
Sets the value of the 'flowStackItems' field. Used to track calls to sub-flows and their relationship to sessions.
- Parameters:
value
- The value of 'flowStackItems'.
-
getWaitingFor
WaitingFor getWaitingFor()
Gets the value of the 'waitingFor' field. What this flow requires in order to continue execution. For flows that have not started executing, null.
-
setWaitingFor
FlowState.Builder setWaitingFor(WaitingFor value)
Sets the value of the 'waitingFor' field. What this flow requires in order to continue execution. For flows that have not started executing, null.
- Parameters:
value
- The value of 'waitingFor'.
-
getWaitingForBuilder
WaitingFor.Builder getWaitingForBuilder()
Gets the Builder instance for the 'waitingFor' field and creates one if it doesn't exist yet. What this flow requires in order to continue execution. For flows that have not started executing, null.
-
setWaitingForBuilder
FlowState.Builder setWaitingForBuilder(WaitingFor.Builder value)
Sets the Builder instance for the 'waitingFor' field What this flow requires in order to continue execution. For flows that have not started executing, null.
- Parameters:
value
- The builder instance that must be set.
-
getSuspendCount
int getSuspendCount()
Gets the value of the 'suspendCount' field. Number of times the fiber has suspended.
-
setSuspendCount
FlowState.Builder setSuspendCount(int value)
Sets the value of the 'suspendCount' field. Number of times the fiber has suspended.
- Parameters:
value
- The value of 'suspendCount'.
-
getSuspendedOn
String getSuspendedOn()
Gets the value of the 'suspendedOn' field. What the previous request was that caused the flow to suspend. Null if no suspension has happened. Used for diagnostic purposes.
-
setSuspendedOn
FlowState.Builder setSuspendedOn(String value)
Sets the value of the 'suspendedOn' field. What the previous request was that caused the flow to suspend. Null if no suspension has happened. Used for diagnostic purposes.
- Parameters:
value
- The value of 'suspendedOn'.
-
hasFiber
boolean hasFiber()
Checks whether the 'fiber' field has been set. Flow execution state, serialized at the point the flow was suspended.
-
clearFiber
FlowState.Builder clearFiber()
Clears the value of the 'fiber' field. Flow execution state, serialized at the point the flow was suspended.
-
hasFlowStartContext
boolean hasFlowStartContext()
Checks whether the 'flowStartContext' field has been set. Context data captured when the flow was started.
-
hasFlowStartContextBuilder
boolean hasFlowStartContextBuilder()
Checks whether the 'flowStartContext' field has an active Builder instance Context data captured when the flow was started.
-
clearFlowStartContext
FlowState.Builder clearFlowStartContext()
Clears the value of the 'flowStartContext' field. Context data captured when the flow was started.
-
hasExternalEventState
boolean hasExternalEventState()
Checks whether the 'externalEventState' field has been set. Active external event request. Null if there are no requests in progress.
-
hasExternalEventStateBuilder
boolean hasExternalEventStateBuilder()
Checks whether the 'externalEventState' field has an active Builder instance Active external event request. Null if there are no requests in progress.
-
clearExternalEventState
FlowState.Builder clearExternalEventState()
Clears the value of the 'externalEventState' field. Active external event request. Null if there are no requests in progress.
-
hasSessions
boolean hasSessions()
Checks whether the 'sessions' field has been set. The current open sessions created by/for the executing flow.
-
clearSessions
FlowState.Builder clearSessions()
Clears the value of the 'sessions' field. The current open sessions created by/for the executing flow.
-
hasFlowStackItems
boolean hasFlowStackItems()
Checks whether the 'flowStackItems' field has been set. Used to track calls to sub-flows and their relationship to sessions.
-
clearFlowStackItems
FlowState.Builder clearFlowStackItems()
Clears the value of the 'flowStackItems' field. Used to track calls to sub-flows and their relationship to sessions.
-
hasWaitingFor
boolean hasWaitingFor()
Checks whether the 'waitingFor' field has been set. What this flow requires in order to continue execution. For flows that have not started executing, null.
-
hasWaitingForBuilder
boolean hasWaitingForBuilder()
Checks whether the 'waitingFor' field has an active Builder instance What this flow requires in order to continue execution. For flows that have not started executing, null.
-
clearWaitingFor
FlowState.Builder clearWaitingFor()
Clears the value of the 'waitingFor' field. What this flow requires in order to continue execution. For flows that have not started executing, null.
-
hasSuspendCount
boolean hasSuspendCount()
Checks whether the 'suspendCount' field has been set. Number of times the fiber has suspended.
-
clearSuspendCount
FlowState.Builder clearSuspendCount()
Clears the value of the 'suspendCount' field. Number of times the fiber has suspended.
-
hasSuspendedOn
boolean hasSuspendedOn()
Checks whether the 'suspendedOn' field has been set. What the previous request was that caused the flow to suspend. Null if no suspension has happened. Used for diagnostic purposes.
-
clearSuspendedOn
FlowState.Builder clearSuspendedOn()
Clears the value of the 'suspendedOn' field. What the previous request was that caused the flow to suspend. Null if no suspension has happened. Used for diagnostic purposes.
-
-
-
-