aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/RequestWaiter.java
blob: e7beefcecd67585183a87a91bc0557f2ccac8831 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;


/**
 * Interface used to wait for the completion of a {@link
 * Request}. This interface is used with the {@link Target#invokeAsync
 * Target.invokeAsync} method.
 **/
public interface RequestWaiter {

    /**
     * Invoked when a request has completed.
     *
     * @param req the completed request
     **/
    public void handleRequestDone(Request req);
}