summaryrefslogtreecommitdiffstats
path: root/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/server/jetty/AsyncCompleteListener.java
blob: be60a5b15d6b9c0e7a5c38291ec3e2d7ffd8aadf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.server.jetty;

import javax.servlet.AsyncEvent;
import javax.servlet.AsyncListener;
import java.io.IOException;

/**
 * Interface for async listeners only interested in onComplete.
 * @author tonytv
 */
@FunctionalInterface
interface AsyncCompleteListener extends AsyncListener {
    @Override
    default void onTimeout(AsyncEvent event) throws IOException {}

    @Override
    default void onError(AsyncEvent event) throws IOException {}

    @Override
    default void onStartAsync(AsyncEvent event) throws IOException {}
}