diff --git a/connector-java/src/main/java/io/zeebe/hazelcast/connect/java/ZeebeHazelcast.java b/connector-java/src/main/java/io/zeebe/hazelcast/connect/java/ZeebeHazelcast.java index b797098..effd41f 100644 --- a/connector-java/src/main/java/io/zeebe/hazelcast/connect/java/ZeebeHazelcast.java +++ b/connector-java/src/main/java/io/zeebe/hazelcast/connect/java/ZeebeHazelcast.java @@ -46,6 +46,8 @@ public class ZeebeHazelcast implements AutoCloseable { RECORD_MESSAGE_TYPES.add(Schema.DecisionRecord.class); RECORD_MESSAGE_TYPES.add(Schema.DecisionRequirementsRecord.class); RECORD_MESSAGE_TYPES.add(Schema.DecisionEvaluationRecord.class); + RECORD_MESSAGE_TYPES.add(Schema.SignalRecord.class); + RECORD_MESSAGE_TYPES.add(Schema.SignalSubscriptionRecord.class); } private final Ringbuffer ringbuffer; @@ -368,6 +370,17 @@ public Builder addDecisionEvaluationListener( return this; } + public Builder addSignalListener(Consumer listener) { + addListener(Schema.SignalRecord.class, listener); + return this; + } + + public Builder addSignalSubscriptionListener( + Consumer listener) { + addListener(Schema.SignalSubscriptionRecord.class, listener); + return this; + } + private long getSequence(Ringbuffer ringbuffer) { final var headSequence = ringbuffer.headSequence(); diff --git a/pom.xml b/pom.xml index 56ee036..d303556 100644 --- a/pom.xml +++ b/pom.xml @@ -16,8 +16,8 @@ - 8.2.0-rc1 - 1.4.0-alpha1 + 8.2.0 + 1.4.0 5.2.3 2.20.0 3.5.2