Class ImmutableSignalSubscriptionRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableSignalSubscriptionRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,SignalSubscriptionRecordValue
@ParametersAreNonnullByDefault
@Immutable
public final class ImmutableSignalSubscriptionRecordValue
extends Object
implements SignalSubscriptionRecordValue
Immutable implementation of
SignalSubscriptionRecordValue.
Use the builder to create immutable instances:
ImmutableSignalSubscriptionRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSignalSubscriptionRecordValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSignalSubscriptionRecordValue.copyOf(SignalSubscriptionRecordValue instance) Creates an immutable copy of aSignalSubscriptionRecordValuevalue.booleanThis instance is equal to all instances ofImmutableSignalSubscriptionRecordValuethat have equal attribute values.longlonginthashCode()Returns a lazily computed hash code from attributes:processDefinitionKey,bpmnProcessId,catchEventId,catchEventInstanceKey,signalName.toString()Prints the immutable valueSignalSubscriptionRecordValuewith attribute values.withBpmnProcessId(String value) Copy the current immutable object by setting a value for thebpmnProcessIdattribute.withCatchEventId(String value) Copy the current immutable object by setting a value for thecatchEventIdattribute.withCatchEventInstanceKey(long value) Copy the current immutable object by setting a value for thecatchEventInstanceKeyattribute.withProcessDefinitionKey(long value) Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute.withSignalName(String value) Copy the current immutable object by setting a value for thesignalNameattribute.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
-
getProcessDefinitionKey
public long getProcessDefinitionKey()- Specified by:
getProcessDefinitionKeyin interfaceSignalSubscriptionRecordValue- Returns:
- the process key tied to the subscription
-
getBpmnProcessId
- Specified by:
getBpmnProcessIdin interfaceSignalSubscriptionRecordValue- Returns:
- the BPMN process id tied to the subscription
-
getCatchEventId
- Specified by:
getCatchEventIdin interfaceSignalSubscriptionRecordValue- Returns:
- the id of the catch event tied to the subscription
-
getCatchEventInstanceKey
public long getCatchEventInstanceKey()- Specified by:
getCatchEventInstanceKeyin interfaceSignalSubscriptionRecordValue- Returns:
- the key of the catch event instance key tied to the subscription
-
getSignalName
- Specified by:
getSignalNamein interfaceSignalSubscriptionRecordValue- Returns:
- the name of the signal
-
withProcessDefinitionKey
Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processDefinitionKey- 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
-
withCatchEventId
Copy the current immutable object by setting a value for thecatchEventIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for catchEventId (can benull)- Returns:
- A modified copy of the
thisobject
-
withCatchEventInstanceKey
Copy the current immutable object by setting a value for thecatchEventInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for catchEventInstanceKey- Returns:
- A modified copy of the
thisobject
-
withSignalName
Copy the current immutable object by setting a value for thesignalNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for signalName (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableSignalSubscriptionRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:processDefinitionKey,bpmnProcessId,catchEventId,catchEventInstanceKey,signalName. -
toString
Prints the immutable valueSignalSubscriptionRecordValuewith attribute values. -
copyOf
Creates an immutable copy of aSignalSubscriptionRecordValuevalue. 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 SignalSubscriptionRecordValue instance
-
builder
Creates a builder forImmutableSignalSubscriptionRecordValue.ImmutableSignalSubscriptionRecordValue.builder() .withProcessDefinitionKey(long) // optionalprocessDefinitionKey.withBpmnProcessId(String | null) // nullablebpmnProcessId.withCatchEventId(String | null) // nullablecatchEventId.withCatchEventInstanceKey(long) // optionalcatchEventInstanceKey.withSignalName(String | null) // nullablesignalName.build();- Returns:
- A new ImmutableSignalSubscriptionRecordValue builder
-