/** * Remove 'self' from the BrokerStack */ public void remove() { parent.setNext(getNext()); }
/** * Adds a session. * * @param context * @param info * @throws Exception */ public void addSession(ConnectionContext context, SessionInfo info) throws Exception { super.addSession(context, info); sendAsyncToSlave(info); }
/** * A client is establishing a connection with the broker. * * @param context * @param info * @throws Exception */ public void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception { super.addConnection(context, info); sendAsyncToSlave(info); }
/** * Adds a producer. * * @param context the enviorment the operation is being executed under. * @param info * @throws Exception */ public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception { super.addProducer(context, info); sendAsyncToSlave(info); }
/** * @param context * @param ack * @throws Exception */ public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception { sendToSlave(ack); super.acknowledge(consumerExchange, ack); }
/** * add a consumer * * @param context * @param info * @return the associated subscription * @throws Exception */ public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception { sendSyncToSlave(info); consumers.put(info.getConsumerId(), info.getConsumerId()); return super.addConsumer(context, info); }
@Override public void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception { super.addDestinationInfo(context, info); if (info.getDestination().isTemporary()) { sendAsyncToSlave(info); } }
/** * Remove 'self' from the BrokerStack */ public void remove() { parent.setNext(getNext()); }
/** * Remove 'self' from the BrokerStack */ public void remove() { parent.setNext(getNext()); }
/** * Remove 'self' from the BrokerStack */ public void remove() { parent.setNext(getNext()); }
/** * Remove 'self' from the BrokerStack */ public void remove() { parent.setNext(getNext()); }