List of usage examples for org.apache.http.nio.protocol HttpAsyncExchange setTimeout
void setTimeout(int timeout);
From source file:org.callimachusproject.server.helpers.Exchange.java
public synchronized void setHttpAsyncExchange(HttpAsyncExchange exchange) { assert exchange != null; this.exchange = exchange; exchange.setCallback(this); if (timeout != -1) { exchange.setTimeout(timeout); }/*from w w w . j a v a2 s . com*/ if (response != null) { exchange.submitResponse(producer = new LoggingResponseProducer(response)); } else if (submitContinue != null) { exchange.submitResponse(submitContinue); } }