Class ImmutableProcessMessageSubscriptionRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessMessageSubscriptionRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,RecordValueWithVariables,ProcessInstanceRelated,ProcessMessageSubscriptionRecordValue,TenantOwned
public final class ImmutableProcessMessageSubscriptionRecordValue
extends Object
implements ProcessMessageSubscriptionRecordValue
Immutable implementation of
ProcessMessageSubscriptionRecordValue.
Use the builder to create immutable instances:
ImmutableProcessMessageSubscriptionRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProcessMessageSubscriptionRecordValue. -
Field Summary
Fields inherited from interface io.camunda.zeebe.protocol.record.value.TenantOwned
DEFAULT_TENANT_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProcessMessageSubscriptionRecordValue.copyOf(ProcessMessageSubscriptionRecordValue instance) Creates an immutable copy of aProcessMessageSubscriptionRecordValuevalue.booleanThis instance is equal to all instances ofImmutableProcessMessageSubscriptionRecordValuethat have equal attribute values.longlonglongReturns the identifier of the tenant that owns this entity.inthashCode()Returns a lazily computed hash code from attributes:variables,tenantId,processInstanceKey,elementInstanceKey,bpmnProcessId,messageKey,messageName,correlationKey,elementId,interrupting.booleantoString()Prints the immutable valueProcessMessageSubscriptionRecordValuewith attribute values.withBpmnProcessId(String value) Copy the current immutable object by setting a value for thebpmnProcessIdattribute.withCorrelationKey(String value) Copy the current immutable object by setting a value for thecorrelationKeyattribute.withElementId(String value) Copy the current immutable object by setting a value for theelementIdattribute.withElementInstanceKey(long value) Copy the current immutable object by setting a value for theelementInstanceKeyattribute.withInterrupting(boolean value) Copy the current immutable object by setting a value for theinterruptingattribute.withMessageKey(long value) Copy the current immutable object by setting a value for themessageKeyattribute.withMessageName(String value) Copy the current immutable object by setting a value for themessageNameattribute.withProcessInstanceKey(long value) Copy the current immutable object by setting a value for theprocessInstanceKeyattribute.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.withVariables(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thevariablesmap with the specified map.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJson
-
Method Details
-
getVariables
- Specified by:
getVariablesin interfaceRecordValueWithVariables- Returns:
- the variables of this record. Can be empty.
-
getTenantId
Returns the identifier of the tenant that owns this entity.- Specified by:
getTenantIdin interfaceTenantOwned
-
getProcessInstanceKey
public long getProcessInstanceKey()- Specified by:
getProcessInstanceKeyin interfaceProcessInstanceRelated- Specified by:
getProcessInstanceKeyin interfaceProcessMessageSubscriptionRecordValue- Returns:
- the process instance key
-
getElementInstanceKey
public long getElementInstanceKey()- Specified by:
getElementInstanceKeyin interfaceProcessMessageSubscriptionRecordValue- Returns:
- the element instance key
-
getBpmnProcessId
- Specified by:
getBpmnProcessIdin interfaceProcessMessageSubscriptionRecordValue- Returns:
- the BPMN process id
-
getMessageKey
public long getMessageKey()- Specified by:
getMessageKeyin interfaceProcessMessageSubscriptionRecordValue- Returns:
- the key of the correlated message
-
getMessageName
- Specified by:
getMessageNamein interfaceProcessMessageSubscriptionRecordValue- Returns:
- the message name
-
getCorrelationKey
- Specified by:
getCorrelationKeyin interfaceProcessMessageSubscriptionRecordValue- Returns:
- the correlation key
-
getElementId
- Specified by:
getElementIdin interfaceProcessMessageSubscriptionRecordValue- Returns:
- the id of the element tied to the subscription.
-
isInterrupting
public boolean isInterrupting()- Specified by:
isInterruptingin interfaceProcessMessageSubscriptionRecordValue- Returns:
trueif the event tied to the subscription is interrupting. Otherwise, it returnsfalseif the event is non-interrupting.
-
withVariables
public final ImmutableProcessMessageSubscriptionRecordValue withVariables(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thevariablesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the variables map- Returns:
- A modified copy of
thisobject
-
withTenantId
Copy the current immutable object by setting a value for thetenantIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantId (can benull)- Returns:
- A modified copy of the
thisobject
-
withProcessInstanceKey
Copy the current immutable object by setting a value for theprocessInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processInstanceKey- Returns:
- A modified copy of the
thisobject
-
withElementInstanceKey
Copy the current immutable object by setting a value for theelementInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementInstanceKey- Returns:
- A modified copy of the
thisobject
-
withBpmnProcessId
Copy the current immutable object by setting a value for thebpmnProcessIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bpmnProcessId (can benull)- Returns:
- A modified copy of the
thisobject
-
withMessageKey
Copy the current immutable object by setting a value for themessageKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageKey- Returns:
- A modified copy of the
thisobject
-
withMessageName
Copy the current immutable object by setting a value for themessageNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageName (can benull)- Returns:
- A modified copy of the
thisobject
-
withCorrelationKey
Copy the current immutable object by setting a value for thecorrelationKeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for correlationKey (can benull)- Returns:
- A modified copy of the
thisobject
-
withElementId
Copy the current immutable object by setting a value for theelementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementId (can benull)- Returns:
- A modified copy of the
thisobject
-
withInterrupting
Copy the current immutable object by setting a value for theinterruptingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for interrupting- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProcessMessageSubscriptionRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:variables,tenantId,processInstanceKey,elementInstanceKey,bpmnProcessId,messageKey,messageName,correlationKey,elementId,interrupting. -
toString
Prints the immutable valueProcessMessageSubscriptionRecordValuewith attribute values. -
copyOf
public static ImmutableProcessMessageSubscriptionRecordValue copyOf(ProcessMessageSubscriptionRecordValue instance) Creates an immutable copy of aProcessMessageSubscriptionRecordValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ProcessMessageSubscriptionRecordValue instance
-
builder
Creates a builder forImmutableProcessMessageSubscriptionRecordValue.ImmutableProcessMessageSubscriptionRecordValue.builder() .putVariable|putAllVariables(String => Object) //variablesmappings .withTenantId(String | null) // nullabletenantId.withProcessInstanceKey(long) // optionalprocessInstanceKey.withElementInstanceKey(long) // optionalelementInstanceKey.withBpmnProcessId(String | null) // nullablebpmnProcessId.withMessageKey(long) // optionalmessageKey.withMessageName(String | null) // nullablemessageName.withCorrelationKey(String | null) // nullablecorrelationKey.withElementId(String | null) // nullableelementId.withInterrupting(boolean) // optionalinterrupting.build();- Returns:
- A new ImmutableProcessMessageSubscriptionRecordValue builder
-