Package io.zeebe.hazelcast.connect.java
Class ZeebeHazelcast.Builder
java.lang.Object
io.zeebe.hazelcast.connect.java.ZeebeHazelcast.Builder
- Enclosing class:
- ZeebeHazelcast
-
Method Summary
Modifier and TypeMethodDescriptionaddDeploymentDistributionListener(Consumer<io.zeebe.exporter.proto.Schema.DeploymentDistributionRecord> listener) addDeploymentListener(Consumer<io.zeebe.exporter.proto.Schema.DeploymentRecord> listener) addErrorListener(Consumer<io.zeebe.exporter.proto.Schema.ErrorRecord> listener) addIncidentListener(Consumer<io.zeebe.exporter.proto.Schema.IncidentRecord> listener) addJobBatchListener(Consumer<io.zeebe.exporter.proto.Schema.JobBatchRecord> listener) addJobListener(Consumer<io.zeebe.exporter.proto.Schema.JobRecord> listener) addMessageListener(Consumer<io.zeebe.exporter.proto.Schema.MessageRecord> listener) addMessageStartEventSubscriptionListener(Consumer<io.zeebe.exporter.proto.Schema.MessageStartEventSubscriptionRecord> listener) addMessageSubscriptionListener(Consumer<io.zeebe.exporter.proto.Schema.MessageSubscriptionRecord> listener) addProcessEventListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessEventRecord> listener) addProcessInstanceCreationListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessInstanceCreationRecord> listener) addProcessInstanceListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessInstanceRecord> listener) addProcessListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessRecord> listener) addProcessMessageSubscriptionListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessMessageSubscriptionRecord> listener) addTimerListener(Consumer<io.zeebe.exporter.proto.Schema.TimerRecord> listener) addVariableDocumentListener(Consumer<io.zeebe.exporter.proto.Schema.VariableDocumentRecord> listener) addVariableListener(Consumer<io.zeebe.exporter.proto.Schema.VariableRecord> listener) build()Start a background task that reads from the ringbuffer and invokes the listeners.Set the name of the ringbuffer to read from.postProcessListener(Consumer<Long> listener) Register a listener that is called when an item is read from the ringbuffer and consumed by the registered listeners.readFrom(long sequence) Start reading from the given sequence.Start reading from the oldest item of the ringbuffer.Start reading from the newest item of the ringbuffer.
-
Method Details
-
name
Set the name of the ringbuffer to read from. -
readFrom
Start reading from the given sequence. -
readFromHead
Start reading from the oldest item of the ringbuffer. -
readFromTail
Start reading from the newest item of the ringbuffer. -
postProcessListener
Register a listener that is called when an item is read from the ringbuffer and consumed by the registered listeners. The listener is called with the next sequence number of the ringbuffer. It can be used to store the sequence number externally. -
addDeploymentListener
public ZeebeHazelcast.Builder addDeploymentListener(Consumer<io.zeebe.exporter.proto.Schema.DeploymentRecord> listener) -
addDeploymentDistributionListener
public ZeebeHazelcast.Builder addDeploymentDistributionListener(Consumer<io.zeebe.exporter.proto.Schema.DeploymentDistributionRecord> listener) -
addProcessListener
public ZeebeHazelcast.Builder addProcessListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessRecord> listener) -
addProcessInstanceListener
public ZeebeHazelcast.Builder addProcessInstanceListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessInstanceRecord> listener) -
addProcessEventListener
public ZeebeHazelcast.Builder addProcessEventListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessEventRecord> listener) -
addVariableListener
public ZeebeHazelcast.Builder addVariableListener(Consumer<io.zeebe.exporter.proto.Schema.VariableRecord> listener) -
addVariableDocumentListener
public ZeebeHazelcast.Builder addVariableDocumentListener(Consumer<io.zeebe.exporter.proto.Schema.VariableDocumentRecord> listener) -
addJobListener
public ZeebeHazelcast.Builder addJobListener(Consumer<io.zeebe.exporter.proto.Schema.JobRecord> listener) -
addJobBatchListener
public ZeebeHazelcast.Builder addJobBatchListener(Consumer<io.zeebe.exporter.proto.Schema.JobBatchRecord> listener) -
addIncidentListener
public ZeebeHazelcast.Builder addIncidentListener(Consumer<io.zeebe.exporter.proto.Schema.IncidentRecord> listener) -
addTimerListener
public ZeebeHazelcast.Builder addTimerListener(Consumer<io.zeebe.exporter.proto.Schema.TimerRecord> listener) -
addMessageListener
public ZeebeHazelcast.Builder addMessageListener(Consumer<io.zeebe.exporter.proto.Schema.MessageRecord> listener) -
addMessageSubscriptionListener
public ZeebeHazelcast.Builder addMessageSubscriptionListener(Consumer<io.zeebe.exporter.proto.Schema.MessageSubscriptionRecord> listener) -
addMessageStartEventSubscriptionListener
public ZeebeHazelcast.Builder addMessageStartEventSubscriptionListener(Consumer<io.zeebe.exporter.proto.Schema.MessageStartEventSubscriptionRecord> listener) -
addProcessMessageSubscriptionListener
public ZeebeHazelcast.Builder addProcessMessageSubscriptionListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessMessageSubscriptionRecord> listener) -
addProcessInstanceCreationListener
public ZeebeHazelcast.Builder addProcessInstanceCreationListener(Consumer<io.zeebe.exporter.proto.Schema.ProcessInstanceCreationRecord> listener) -
addErrorListener
public ZeebeHazelcast.Builder addErrorListener(Consumer<io.zeebe.exporter.proto.Schema.ErrorRecord> listener) -
build
Start a background task that reads from the ringbuffer and invokes the listeners. After an item is read and the listeners are invoked, the sequence is incremented (at-least-once semantic).
The current sequence is returned byZeebeHazelcast.getSequence().
CallZeebeHazelcast.close()to stop reading.
-