use of org.apache.qpid.server.txn.AsyncCommand in project qpid-broker-j by apache.
the class StandardReceivingLinkEndpoint method receiveComplete.
@Override
public void receiveComplete() {
AsyncCommand cmd;
while ((cmd = _unfinishedCommandsQueue.poll()) != null) {
cmd.complete();
}
processPendingDispositions();
}
use of org.apache.qpid.server.txn.AsyncCommand in project qpid-broker-j by apache.
the class ServerSession method completeAsyncCommands.
public void completeAsyncCommands() {
AsyncCommand cmd;
while ((cmd = _unfinishedCommandsQueue.peek()) != null && cmd.isReadyForCompletion()) {
cmd.complete();
_unfinishedCommandsQueue.poll();
}
while (_unfinishedCommandsQueue.size() > UNFINISHED_COMMAND_QUEUE_THRESHOLD) {
cmd = _unfinishedCommandsQueue.poll();
cmd.complete();
}
}
Aggregations