com.rabbitmq.client.ConfirmCallback Java Examples

The following examples show how to use com.rabbitmq.client.ConfirmCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfirmListenerWrapper.java    From rabbitmq-mock with Apache License 2.0 4 votes vote down vote up
public ConfirmListenerWrapper(ConfirmCallback ackCallback, ConfirmCallback nackCallback) {
    this.ackCallback = ackCallback;
    this.nackCallback = nackCallback;
}
 
Example #2
Source File: MockChannel.java    From rabbitmq-mock with Apache License 2.0 4 votes vote down vote up
@Override
public ConfirmListener addConfirmListener(ConfirmCallback ackCallback, ConfirmCallback nackCallback) {
    ConfirmListener confirmListener = new ConfirmListenerWrapper(ackCallback, nackCallback);
    addConfirmListener(confirmListener);
    return confirmListener;
}
 
Example #3
Source File: PoolableChannel.java    From jweb-cms with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public ConfirmListener addConfirmListener(ConfirmCallback ackCallback, ConfirmCallback nackCallback) {
    return delegate.addConfirmListener(ackCallback, nackCallback);
}
 
Example #4
Source File: TestChannel.java    From nifi with Apache License 2.0 4 votes vote down vote up
@Override
public ConfirmListener addConfirmListener(ConfirmCallback ackCallback, ConfirmCallback nackCallback) {
    throw new UnsupportedOperationException("This method is not currently supported as it is not used by current API in testing");
}