Search in sources :

Example 1 with LogStreamReader

use of io.zeebe.logstreams.log.LogStreamReader in project zeebe by zeebe-io.

the class TopicSubscriptionPushProcessor method onOpen.

@Override
public void onOpen(StreamProcessorContext context) {
    this.context = context;
    final LogStreamReader logReader = context.getLogStreamReader();
    final LogStream logStream = context.getLogStream();
    this.logStreamPartitionId = logStream.getPartitionId();
    setToStartPosition(logReader);
    context.suspendController();
}
Also used : LogStreamReader(io.zeebe.logstreams.log.LogStreamReader) LogStream(io.zeebe.logstreams.log.LogStream)

Aggregations

LogStream (io.zeebe.logstreams.log.LogStream)1 LogStreamReader (io.zeebe.logstreams.log.LogStreamReader)1