com.rabbitmq.client.ConfirmListener Java Examples

The following examples show how to use com.rabbitmq.client.ConfirmListener. 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: ChannelHandler.java    From lyra with Apache License 2.0 5 votes vote down vote up
private void handleAdd(String methodName, Object arg) {
  if ("addConfirmListener".equals(methodName))
    confirmListeners.add((ConfirmListener) arg);
  else if ("addFlowListener".equals(methodName))
    flowListeners.add((FlowListener) arg);
  else if ("addReturnListener".equals(methodName))
    returnListeners.add((ReturnListener) arg);
}
 
Example #2
Source File: ChannelHandler.java    From lyra with Apache License 2.0 5 votes vote down vote up
private void handleRemove(String methodName, Object arg) {
  if ("removeConfirmListener".equals(methodName))
    confirmListeners.remove((ConfirmListener) arg);
  else if ("removeFlowListener".equals(methodName))
    flowListeners.remove((FlowListener) arg);
  else if ("removeReturnListener".equals(methodName))
    returnListeners.remove((ReturnListener) arg);
}
 
Example #3
Source File: MockChannel.java    From rabbitmq-mock with Apache License 2.0 4 votes vote down vote up
@Override
public void addConfirmListener(ConfirmListener listener) {
    confirmListeners.add(listener);
}
 
Example #4
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 #5
Source File: MockChannel.java    From rabbitmq-mock with Apache License 2.0 4 votes vote down vote up
@Override
public boolean removeConfirmListener(ConfirmListener listener) {
    return confirmListeners.remove(listener);
}
 
Example #6
Source File: TestChannel.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
@Override
public void addConfirmListener(ConfirmListener listener) {
    throw new UnsupportedOperationException(
            "This method is not currently supported as it is not used by current API in testing");

}
 
Example #7
Source File: TestChannel.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
@Override
public boolean removeConfirmListener(ConfirmListener listener) {
    throw new UnsupportedOperationException(
            "This method is not currently supported as it is not used by current API in testing");
}
 
Example #8
Source File: PoolableChannel.java    From jweb-cms with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public void addConfirmListener(ConfirmListener listener) {
    delegate.addConfirmListener(listener);
}
 
Example #9
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 #10
Source File: PoolableChannel.java    From jweb-cms with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public boolean removeConfirmListener(ConfirmListener listener) {
    return delegate.removeConfirmListener(listener);
}
 
Example #11
Source File: DefaultChannelFactory.java    From rxrabbit with MIT License 4 votes vote down vote up
@Override
public void addConfirmListener(ConfirmListener confirmListener) {
    delegate.addConfirmListener(confirmListener);
}
 
Example #12
Source File: TestChannel.java    From nifi with Apache License 2.0 4 votes vote down vote up
@Override
public void addConfirmListener(ConfirmListener listener) {
    throw new UnsupportedOperationException("This method is not currently supported as it is not used by current API in testing");

}
 
Example #13
Source File: TestChannel.java    From nifi with Apache License 2.0 4 votes vote down vote up
@Override
public boolean removeConfirmListener(ConfirmListener listener) {
    throw new UnsupportedOperationException("This method is not currently supported as it is not used by current API in testing");
}
 
Example #14
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");
}
 
Example #15
Source File: PublishChannel.java    From rxrabbit with MIT License 2 votes vote down vote up
/**
 * Add a {@link ConfirmListener}.
 * @param listener the listener to add
 */
void addConfirmListener(ConfirmListener listener);