Skip to content

Commit

Permalink
Added javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
  • Loading branch information
shiv0408 committed Jun 19, 2024
1 parent 5924b92 commit b456243
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@

import org.opensearch.core.action.ActionListener;

/**
* A simple implementation of {@link ActionListener} that captures the response and failures used for testing purposes.
*
* @param <T> the result type
*/
public class TestCapturingListener<T> implements ActionListener<T> {
T result;
Exception failure;
private T result;
private Exception failure;

@Override
public void onResponse(T result) {
Expand Down

0 comments on commit b456243

Please sign in to comment.