Search in sources :

Example 1 with AsyncCommand

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();
}
Also used : AsyncCommand(org.apache.qpid.server.txn.AsyncCommand)

Example 2 with AsyncCommand

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();
    }
}
Also used : AsyncCommand(org.apache.qpid.server.txn.AsyncCommand)

Aggregations

AsyncCommand (org.apache.qpid.server.txn.AsyncCommand)2