public AMQP.Exchange.UnbindOk exchangeUnbind(
     String destination, String source, String routingKey, Map<String, Object> arguments)
     throws IOException {
   deleteRecordedExchangeBinding(destination, source, routingKey, arguments);
   this.maybeDeleteRecordedAutoDeleteExchange(source);
   return delegate.exchangeUnbind(destination, source, routingKey, arguments);
 }
 public AMQP.Queue.UnbindOk queueUnbind(
     String queue, String exchange, String routingKey, Map<String, Object> arguments)
     throws IOException {
   deleteRecordedQueueBinding(queue, exchange, routingKey, arguments);
   this.maybeDeleteRecordedAutoDeleteExchange(exchange);
   return delegate.queueUnbind(queue, exchange, routingKey, arguments);
 }
 public void close(int closeCode, String closeMessage) throws IOException, TimeoutException {
   try {
     delegate.close(closeCode, closeMessage);
   } finally {
     this.connection.unregisterChannel(this);
   }
 }
 public AMQP.Queue.BindOk queueBind(
     String queue, String exchange, String routingKey, Map<String, Object> arguments)
     throws IOException {
   AMQP.Queue.BindOk ok = delegate.queueBind(queue, exchange, routingKey, arguments);
   recordQueueBinding(queue, exchange, routingKey, arguments);
   return ok;
 }
 public void close() throws IOException, TimeoutException {
   try {
     delegate.close();
   } finally {
     this.connection.unregisterChannel(this);
   }
 }
 public AMQP.Exchange.BindOk exchangeBind(
     String destination, String source, String routingKey, Map<String, Object> arguments)
     throws IOException {
   final AMQP.Exchange.BindOk ok =
       delegate.exchangeBind(destination, source, routingKey, arguments);
   recordExchangeBinding(destination, source, routingKey, arguments);
   return ok;
 }
  public void basicQos(int prefetchSize, int prefetchCount, boolean global) throws IOException {
    if (global) {
      this.prefetchCountGlobal = prefetchCount;
    } else {
      this.prefetchCountConsumer = prefetchCount;
    }

    delegate.basicQos(prefetchSize, prefetchCount, global);
  }
 public void basicPublish(
     String exchange,
     String routingKey,
     boolean mandatory,
     AMQP.BasicProperties props,
     byte[] body)
     throws IOException {
   delegate.basicPublish(exchange, routingKey, mandatory, props, body);
 }
 public String basicConsume(
     String queue,
     boolean autoAck,
     String consumerTag,
     boolean noLocal,
     boolean exclusive,
     Map<String, Object> arguments,
     Consumer callback)
     throws IOException {
   final String result =
       delegate.basicConsume(queue, autoAck, consumerTag, noLocal, exclusive, arguments, callback);
   recordConsumer(result, queue, autoAck, exclusive, arguments, callback);
   return result;
 }
Пример #10
0
 public void queueDeclareNoWait(
     String queue,
     boolean durable,
     boolean exclusive,
     boolean autoDelete,
     Map<String, Object> arguments)
     throws IOException {
   RecordedQueue meta =
       new RecordedQueue(this, queue)
           .durable(durable)
           .exclusive(exclusive)
           .autoDelete(autoDelete)
           .arguments(arguments);
   delegate.queueDeclareNoWait(queue, durable, exclusive, autoDelete, arguments);
   recordQueue(queue, meta);
 }
Пример #11
0
 @Override
 public void exchangeDeclareNoWait(
     String exchange,
     String type,
     boolean durable,
     boolean autoDelete,
     boolean internal,
     Map<String, Object> arguments)
     throws IOException {
   RecordedExchange x =
       new RecordedExchange(this, exchange)
           .type(type)
           .durable(durable)
           .autoDelete(autoDelete)
           .arguments(arguments);
   recordExchange(exchange, x);
   delegate.exchangeDeclareNoWait(exchange, type, durable, autoDelete, internal, arguments);
 }
Пример #12
0
 public AMQP.Exchange.DeclareOk exchangeDeclare(
     String exchange,
     String type,
     boolean durable,
     boolean autoDelete,
     boolean internal,
     Map<String, Object> arguments)
     throws IOException {
   final AMQP.Exchange.DeclareOk ok =
       delegate.exchangeDeclare(exchange, type, durable, autoDelete, internal, arguments);
   RecordedExchange x =
       new RecordedExchange(this, exchange)
           .type(type)
           .durable(durable)
           .autoDelete(autoDelete)
           .arguments(arguments);
   recordExchange(exchange, x);
   return ok;
 }
Пример #13
0
 public AMQP.Queue.DeclareOk queueDeclare(
     String queue,
     boolean durable,
     boolean exclusive,
     boolean autoDelete,
     Map<String, Object> arguments)
     throws IOException {
   final AMQP.Queue.DeclareOk ok =
       delegate.queueDeclare(queue, durable, exclusive, autoDelete, arguments);
   RecordedQueue q =
       new RecordedQueue(this, ok.getQueue())
           .durable(durable)
           .exclusive(exclusive)
           .autoDelete(autoDelete)
           .arguments(arguments);
   if (queue.equals(RecordedQueue.EMPTY_STRING)) {
     q.serverNamed(true);
   }
   recordQueue(ok, q);
   return ok;
 }
Пример #14
0
 public boolean waitForConfirms(long timeout) throws InterruptedException, TimeoutException {
   return delegate.waitForConfirms(timeout);
 }
Пример #15
0
 public boolean isOpen() {
   return delegate.isOpen();
 }
Пример #16
0
 public void notifyListeners() {
   delegate.notifyListeners();
 }
Пример #17
0
 public ShutdownSignalException getCloseReason() {
   return delegate.getCloseReason();
 }
Пример #18
0
 public void removeShutdownListener(ShutdownListener listener) {
   this.shutdownHooks.remove(listener);
   delegate.removeShutdownListener(listener);
 }
Пример #19
0
 /** @see Connection#addShutdownListener(com.rabbitmq.client.ShutdownListener) */
 public void addShutdownListener(ShutdownListener listener) {
   this.shutdownHooks.add(listener);
   delegate.addShutdownListener(listener);
 }
Пример #20
0
 public Connection getConnection() {
   return delegate.getConnection();
 }
Пример #21
0
 public Command rpc(Method method) throws IOException {
   return delegate.rpc(method);
 }
Пример #22
0
 public void addReturnListener(ReturnListener listener) {
   this.returnListeners.add(listener);
   delegate.addReturnListener(listener);
 }
Пример #23
0
 public void abort() throws IOException {
   delegate.abort();
 }
Пример #24
0
 public boolean waitForConfirms() throws InterruptedException {
   return delegate.waitForConfirms();
 }
Пример #25
0
 @SuppressWarnings("deprecation")
 @Deprecated
 public boolean flowBlocked() {
   return delegate.flowBlocked();
 }
Пример #26
0
 public void waitForConfirmsOrDie() throws IOException, InterruptedException {
   delegate.waitForConfirmsOrDie();
 }
Пример #27
0
 public void abort(int closeCode, String closeMessage) throws IOException {
   delegate.abort(closeCode, closeMessage);
 }
Пример #28
0
 public void waitForConfirmsOrDie(long timeout)
     throws IOException, InterruptedException, TimeoutException {
   delegate.waitForConfirmsOrDie(timeout);
 }
Пример #29
0
 public boolean removeReturnListener(ReturnListener listener) {
   this.returnListeners.remove(listener);
   return delegate.removeReturnListener(listener);
 }
Пример #30
0
 public void asyncRpc(Method method) throws IOException {
   delegate.asyncRpc(method);
 }