-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10196: Introduce ProcessingResponse r=Zelldon a=Zelldon ## Description blocked by #10191 ✅ blocked by #10188 ✅ Introduce the ProcessingResponse, which encapsulates the information of the Record which should be send as response on a user command and the request- and streamId which identifies the request. The ProcessingResponse usage replaces the usage of the CommandResponseWriter, and deletes several now unused code. <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> closes #10001 Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
- Loading branch information
Showing
13 changed files
with
111 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
engine/src/main/java/io/camunda/zeebe/engine/api/ProcessingResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under | ||
* one or more contributor license agreements. See the NOTICE file distributed | ||
* with this work for additional information regarding copyright ownership. | ||
* Licensed under the Zeebe Community License 1.1. You may not use this file | ||
* except in compliance with the Zeebe Community License 1.1. | ||
*/ | ||
package io.camunda.zeebe.engine.api; | ||
|
||
import io.camunda.zeebe.engine.api.records.RecordBatchEntry; | ||
|
||
/** | ||
* The response which has been created during processing, for a request which can be identified by | ||
* {@link #requestId} and {@link #requestStreamId}. | ||
*/ | ||
public interface ProcessingResponse { | ||
|
||
/** | ||
* @return the id which together with the stream id identifies the request | ||
*/ | ||
long requestId(); | ||
|
||
/** | ||
* @return the id of the stream on which the request was sent, together with the request id the | ||
* request can be identified | ||
*/ | ||
int requestStreamId(); | ||
|
||
/** | ||
* @return the value of the response which should be sent as answer of the request | ||
*/ | ||
RecordBatchEntry responseValue(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 0 additions & 60 deletions
60
engine/src/main/java/io/camunda/zeebe/streamprocessor/DirectTypedResponseWriter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.