Skip to content

Commit 89dbc78

Browse files
committed
Comment RpcClient reply handler interface
[#161476914] References #417
1 parent 6493f46 commit 89dbc78

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main/java/com/rabbitmq/client/RpcClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,22 @@ public byte[] getBody() {
532532
}
533533
}
534534

535+
/**
536+
* Behavior to handle RPC reply.
537+
* <p>
538+
* Can be used to convert the reply in a {@link Response} and
539+
* to handle exceptions.
540+
*
541+
* @since 4.10.0
542+
*/
535543
public interface RpcClientReplyHandler {
536544

545+
/**
546+
* Handle reply.
547+
*
548+
* @param reply
549+
* @return
550+
*/
537551
Response handle(Object reply);
538552

539553
}

0 commit comments

Comments
 (0)