@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeProducer(context, info); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { getNext().removeProducer(context, info); }
/** * A producer may de-register from sending to multiple destinations via a * composite destination. */ public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { // The destination may be null. ActiveMQDestination destination = info.getDestination(); if (destination != null && destination.isComposite()) { ActiveMQDestination[] destinations = destination.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ProducerInfo copy = info.copy(); copy.setDestination(destinations[i]); next.removeProducer(context, copy); } } else { next.removeProducer(context, info); } }
@Override public Response processRemoveProducer(ProducerId id) throws Exception { SessionId sessionId = id.getParentId(); ConnectionId connectionId = sessionId.getParentId(); TransportConnectionState cs = lookupConnectionState(connectionId); SessionState ss = cs.getSessionState(sessionId); if (ss == null) { throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: " + sessionId); } ProducerState ps = ss.removeProducer(id); if (ps == null) { throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id); } removeProducerBrokerExchange(id); broker.removeProducer(cs.getContext(), ps.getInfo()); return null; }
ss.addProducer(info); } catch (IllegalStateException e) { broker.removeProducer(cs.getContext(), info);
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeProducer(context, info); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeProducer(context, info); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeProducer(context, info); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); Broker brokers[] = getListeners(); for (int i = 0; i < brokers.length; i++) { brokers[i].removeProducer(context, info); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { getNext().removeProducer(context, info); }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { getNext().removeProducer(context, info); }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { getNext().removeProducer(context, info); }
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { getNext().removeProducer(context, info); }
/** * A producer may de-register from sending to multiple destinations via a * composite destination. */ public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { // The destination may be null. ActiveMQDestination destination = info.getDestination(); if (destination != null && destination.isComposite()) { ActiveMQDestination[] destinations = destination.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ProducerInfo copy = info.copy(); copy.setDestination(destinations[i]); next.removeProducer(context, copy); } } else { next.removeProducer(context, info); } }
/** * A producer may de-register from sending to multiple destinations via a * composite destination. */ public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { // The destination may be null. ActiveMQDestination destination = info.getDestination(); if (destination != null && destination.isComposite()) { ActiveMQDestination[] destinations = destination.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ProducerInfo copy = info.copy(); copy.setDestination(destinations[i]); next.removeProducer(context, copy); } } else { next.removeProducer(context, info); } }
/** * A producer may de-register from sending to multiple destinations via a * composite destination. */ public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { // The destination may be null. ActiveMQDestination destination = info.getDestination(); if (destination != null && destination.isComposite()) { ActiveMQDestination[] destinations = destination.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ProducerInfo copy = info.copy(); copy.setDestination(destinations[i]); next.removeProducer(context, copy); } } else { next.removeProducer(context, info); } }
@Override public Response processRemoveProducer(ProducerId id) throws Exception { SessionId sessionId = id.getParentId(); ConnectionId connectionId = sessionId.getParentId(); TransportConnectionState cs = lookupConnectionState(connectionId); SessionState ss = cs.getSessionState(sessionId); if (ss == null) { throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: " + sessionId); } ProducerState ps = ss.removeProducer(id); if (ps == null) { throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id); } removeProducerBrokerExchange(id); broker.removeProducer(cs.getContext(), ps.getInfo()); return null; }
public Response processRemoveProducer(ProducerId id) throws Exception { SessionId sessionId = id.getParentId(); ConnectionId connectionId = sessionId.getParentId(); TransportConnectionState cs = lookupConnectionState(connectionId); SessionState ss = cs.getSessionState(sessionId); if (ss == null) { throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: " + sessionId); } ProducerState ps = ss.removeProducer(id); if (ps == null) { throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id); } removeProducerBrokerExchange(id); broker.removeProducer(cs.getContext(), ps.getInfo()); return null; }
@Override public Response processRemoveProducer(ProducerId id) throws Exception { SessionId sessionId = id.getParentId(); ConnectionId connectionId = sessionId.getParentId(); TransportConnectionState cs = lookupConnectionState(connectionId); SessionState ss = cs.getSessionState(sessionId); if (ss == null) { throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: " + sessionId); } ProducerState ps = ss.removeProducer(id); if (ps == null) { throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id); } removeProducerBrokerExchange(id); broker.removeProducer(cs.getContext(), ps.getInfo()); return null; }