aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/jdisc/LoggingCompletionHandler.java
blob: bc1fa134f5d97b0bc94e77437baa0345ecff8fcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 Yahoo Holdings. 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 <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
 */
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.
     */
    public void markCommitStart();
}