test/jdk/java/net/httpclient/http2/server/Http2TestExchange.java
branchhttp-client-branch
changeset 55871 45c88bf0592b
parent 55868 5899aa5e1837
child 55973 4d9b002587db
equal deleted inserted replaced
55870:1a13210ce726 55871:45c88bf0592b
    62     boolean serverPushAllowed();
    62     boolean serverPushAllowed();
    63 
    63 
    64     void serverPush(URI uri, HttpHeadersImpl headers, InputStream content);
    64     void serverPush(URI uri, HttpHeadersImpl headers, InputStream content);
    65 
    65 
    66     /**
    66     /**
    67      * Send a PING on this exchanges connection, and complete the given CF
    67      * Send a PING on this exchanges connection, and completes the returned CF
    68      * with the number of milliseconds it took to get a valid response.
    68      * with the number of milliseconds it took to get a valid response.
    69      * It may also complete exceptionally
    69      * It may also complete exceptionally
    70      */
    70      */
    71     void sendPing(CompletableFuture<Long> cf) throws IOException;
    71     CompletableFuture<Long> sendPing();
    72 }
    72 }