aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/jdisc/LoggingCompletionHandler.java
blob: 3033319d8241251ab629199331ebdea8ce5b0c13 (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 Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc;

import com.yahoo.jdisc.handler.CompletionHandler;

/**
 * A completion handler which does access logging.
 *
 * @see ThreadedHttpRequestHandler#createLoggingCompletionHandler(long, long, HttpResponse, HttpRequest, ContentChannelOutputStream)
 * @author Steinar Knutsen
 */
public interface LoggingCompletionHandler extends CompletionHandler {

    /**
     * Set the commit start time to the current time. Commit start is only well
     * defined for synchronous renderers, it is the point in time when rendering
     * has finished, but there may still be I/O operations to transfer the data
     * to the client pending.
     */
    void markCommitStart();

}