Class FlowStackItem
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class FlowStackItem extends SpecificRecordBase implements SpecificRecord
Represents an item on the flow stack.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
FlowStackItem.Builder
RecordBuilder for FlowStackItem instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
flowName
public boolean
isInitiatingFlow
public List<FlowStackItemSession>
sessions
public KeyValuePairList
contextUserProperties
public KeyValuePairList
contextPlatformProperties
-
Constructor Summary
Constructors Constructor Description FlowStackItem()
Default constructor. FlowStackItem(String flowName, Boolean isInitiatingFlow, List<FlowStackItemSession> sessions, KeyValuePairList contextUserProperties, KeyValuePairList contextPlatformProperties)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getFlowName()
Gets the value of the 'flowName' field. void
setFlowName(String value)
Sets the value of the 'flowName' field. boolean
getIsInitiatingFlow()
Gets the value of the 'isInitiatingFlow' field. void
setIsInitiatingFlow(boolean value)
Sets the value of the 'isInitiatingFlow' field. List<FlowStackItemSession>
getSessions()
Gets the value of the 'sessions' field. void
setSessions(List<FlowStackItemSession> value)
Sets the value of the 'sessions' field. KeyValuePairList
getContextUserProperties()
Gets the value of the 'contextUserProperties' field. void
setContextUserProperties(KeyValuePairList value)
Sets the value of the 'contextUserProperties' field. KeyValuePairList
getContextPlatformProperties()
Gets the value of the 'contextPlatformProperties' field. void
setContextPlatformProperties(KeyValuePairList value)
Sets the value of the 'contextPlatformProperties' field. static Schema
getClassSchema()
static BinaryMessageEncoder<FlowStackItem>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<FlowStackItem>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<FlowStackItem>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this FlowStackItem to a ByteBuffer. static FlowStackItem
fromByteBuffer(ByteBuffer b)
Deserializes a FlowStackItem from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static FlowStackItem.Builder
newBuilder()
Creates a new FlowStackItem RecordBuilder. static FlowStackItem.Builder
newBuilder(FlowStackItem.Builder other)
Creates a new FlowStackItem RecordBuilder by copying an existing Builder. static FlowStackItem.Builder
newBuilder(FlowStackItem other)
Creates a new FlowStackItem RecordBuilder by copying an existing FlowStackItem instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FlowStackItem
FlowStackItem()
Default constructor.
-
FlowStackItem
FlowStackItem(String flowName, Boolean isInitiatingFlow, List<FlowStackItemSession> sessions, KeyValuePairList contextUserProperties, KeyValuePairList contextPlatformProperties)
All-args constructor.- Parameters:
flowName
- Class name of the flow.isInitiatingFlow
- Flag to show if the flow is an initiating flow type.sessions
- List of any session associated with this flow or subFlow.contextUserProperties
- The context user properties associated with this level in the Flow stack.contextPlatformProperties
- The context platform properties associated with this level in the Flow stack.
-
-
Method Detail
-
getFlowName
String getFlowName()
Gets the value of the 'flowName' field.
-
setFlowName
void setFlowName(String value)
Sets the value of the 'flowName' field. Class name of the flow.
- Parameters:
value
- the value to set.
-
getIsInitiatingFlow
boolean getIsInitiatingFlow()
Gets the value of the 'isInitiatingFlow' field.
-
setIsInitiatingFlow
void setIsInitiatingFlow(boolean value)
Sets the value of the 'isInitiatingFlow' field. Flag to show if the flow is an initiating flow type.
- Parameters:
value
- the value to set.
-
getSessions
List<FlowStackItemSession> getSessions()
Gets the value of the 'sessions' field.
-
setSessions
void setSessions(List<FlowStackItemSession> value)
Sets the value of the 'sessions' field. List of any session associated with this flow or subFlow.
- Parameters:
value
- the value to set.
-
getContextUserProperties
KeyValuePairList getContextUserProperties()
Gets the value of the 'contextUserProperties' field.
-
setContextUserProperties
void setContextUserProperties(KeyValuePairList value)
Sets the value of the 'contextUserProperties' field. The context user properties associated with this level in the Flow stack.
- Parameters:
value
- the value to set.
-
getContextPlatformProperties
KeyValuePairList getContextPlatformProperties()
Gets the value of the 'contextPlatformProperties' field.
-
setContextPlatformProperties
void setContextPlatformProperties(KeyValuePairList value)
Sets the value of the 'contextPlatformProperties' field. The context platform properties associated with this level in the Flow stack.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<FlowStackItem> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<FlowStackItem> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<FlowStackItem> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this FlowStackItem to a ByteBuffer.
-
fromByteBuffer
static FlowStackItem fromByteBuffer(ByteBuffer b)
Deserializes a FlowStackItem from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static FlowStackItem.Builder newBuilder()
Creates a new FlowStackItem RecordBuilder.
-
newBuilder
static FlowStackItem.Builder newBuilder(FlowStackItem.Builder other)
Creates a new FlowStackItem RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static FlowStackItem.Builder newBuilder(FlowStackItem other)
Creates a new FlowStackItem RecordBuilder by copying an existing FlowStackItem instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-