use of org.apache.qpid.server.transport.ServerNetworkConnection in project qpid-broker-j by apache.
the class ServerConnection method setState.
protected void setState(State state) {
synchronized (lock) {
this.state = state;
lock.notifyAll();
}
if (state == State.CLOSING) {
long timeoutTime = System.currentTimeMillis() + getAmqpConnection().getContextValue(Long.class, org.apache.qpid.server.model.Connection.CLOSE_RESPONSE_TIMEOUT);
getAmqpConnection().getAggregateTicker().addTicker(new ConnectionClosingTicker(timeoutTime, (ServerNetworkConnection) getNetworkConnection()));
// trigger a wakeup to ensure the ticker will be taken into account
getAmqpConnection().notifyWork();
}
}
Aggregations