Class ZeebeHazelcast.Builder

    • Method Detail

      • readFromHead

        public ZeebeHazelcast.Builder readFromHead()
        Start reading from the oldest item of the ringbuffer.
      • readFromTail

        public ZeebeHazelcast.Builder readFromTail()
        Start reading from the newest item of the ringbuffer.
      • postProcessListener

        public ZeebeHazelcast.Builder postProcessListener​(java.util.function.Consumer<Long> listener)
        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​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.DeploymentRecord> listener)
      • addDeploymentDistributionListener

        public ZeebeHazelcast.Builder addDeploymentDistributionListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.DeploymentDistributionRecord> listener)
      • addProcessListener

        public ZeebeHazelcast.Builder addProcessListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.ProcessRecord> listener)
      • addProcessInstanceListener

        public ZeebeHazelcast.Builder addProcessInstanceListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.ProcessInstanceRecord> listener)
      • addProcessEventListener

        public ZeebeHazelcast.Builder addProcessEventListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.ProcessEventRecord> listener)
      • addVariableListener

        public ZeebeHazelcast.Builder addVariableListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.VariableRecord> listener)
      • addVariableDocumentListener

        public ZeebeHazelcast.Builder addVariableDocumentListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.VariableDocumentRecord> listener)
      • addJobListener

        public ZeebeHazelcast.Builder addJobListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.JobRecord> listener)
      • addJobBatchListener

        public ZeebeHazelcast.Builder addJobBatchListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.JobBatchRecord> listener)
      • addIncidentListener

        public ZeebeHazelcast.Builder addIncidentListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.IncidentRecord> listener)
      • addTimerListener

        public ZeebeHazelcast.Builder addTimerListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.TimerRecord> listener)
      • addMessageListener

        public ZeebeHazelcast.Builder addMessageListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.MessageRecord> listener)
      • addMessageSubscriptionListener

        public ZeebeHazelcast.Builder addMessageSubscriptionListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.MessageSubscriptionRecord> listener)
      • addMessageStartEventSubscriptionListener

        public ZeebeHazelcast.Builder addMessageStartEventSubscriptionListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.MessageStartEventSubscriptionRecord> listener)
      • addProcessMessageSubscriptionListener

        public ZeebeHazelcast.Builder addProcessMessageSubscriptionListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.ProcessMessageSubscriptionRecord> listener)
      • addProcessInstanceCreationListener

        public ZeebeHazelcast.Builder addProcessInstanceCreationListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.ProcessInstanceCreationRecord> listener)
      • addErrorListener

        public ZeebeHazelcast.Builder addErrorListener​(java.util.function.Consumer<io.zeebe.exporter.proto.Schema.ErrorRecord> listener)
      • build

        public ZeebeHazelcast 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 by ZeebeHazelcast.getSequence().
        Call ZeebeHazelcast.close() to stop reading.