Skip to content

Commit

Permalink
refactor: remove LogStream from API
Browse files Browse the repository at this point in the history
Finally remove the LogStream from the API, which removed the last remaining LogStream knowledge from the engine/processing API
  • Loading branch information
ChrisKujawa committed Sep 30, 2022
1 parent 7017918 commit 332a405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@
*/
package io.camunda.zeebe.engine.api;

import io.camunda.zeebe.logstreams.log.LogStream;

public interface ReadonlyStreamProcessorContext {

ProcessingScheduleService getScheduleService();

/**
* @return the logstream, on which the processor runs
*/
@Deprecated // only used in EngineRule; TODO remove this
LogStream getLogStream();

/**
* Returns the partition ID
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,15 @@ public ProcessingScheduleService getScheduleService() {
return processingScheduleService;
}

@Override
public LogStream getLogStream() {
return logStream;
}

@Override
public int getPartitionId() {
return getLogStream().getPartitionId();
}

public LogStream getLogStream() {
return logStream;
}

public MutableLastProcessedPositionState getLastProcessedPositionState() {
return lastProcessedPositionState;
}
Expand Down

0 comments on commit 332a405

Please sign in to comment.