summaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/RequestWaiter.java
blob: 6973e48ba7f755c71b4cd66bf5e88a25edeea699 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2017 Yahoo Holdings. 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);
}