Skip to content

Commit

Permalink
feat: add notifyChange to Kafka request/response
Browse files Browse the repository at this point in the history
This method was declared in an internal interface, but when a policy
updates the request and/or response, we need to call it from inside the
policy to ensure the request/response is rebuilt
  • Loading branch information
jgiovaresco committed Nov 26, 2024
1 parent 7081171 commit 36c7904
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ public interface KafkaRequest extends NativeRequest {
* @return the Kafka native request.
*/
<T extends AbstractRequest> T delegate();

/**
* Register that the request has been updated during its processing and need to be rebuilt before sending it.
*/
void notifyChange();
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ public interface KafkaResponse extends NativeResponse {
* @return the Kafka native response.
*/
<T extends AbstractResponse> T delegate();

/**
* Register that the response has been updated during its processing and need to be rebuilt before sending it.
*/
void notifyChange();
}

0 comments on commit 36c7904

Please sign in to comment.