protected synchronized TransportConnectionState registerConnectionState(ConnectionId connectionId, TransportConnectionState state) { TransportConnectionState cs = null; if (!connectionStateRegister.isEmpty() && !connectionStateRegister.doesHandleMultipleConnectionStates()) { // swap implementations TransportConnectionStateRegister newRegister = new MapTransportConnectionStateRegister(); newRegister.intialize(connectionStateRegister); connectionStateRegister = newRegister; } cs = connectionStateRegister.registerConnectionState(connectionId, state); return cs; }
public TransportConnectionState lookupConnectionState(SessionId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a session from a connection that had not been registered: " + id.getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ConsumerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a consumer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
protected synchronized TransportConnectionState registerConnectionState(ConnectionId connectionId, TransportConnectionState state) { TransportConnectionState cs = null; if (!connectionStateRegister.isEmpty() && !connectionStateRegister.doesHandleMultipleConnectionStates()) { // swap implementations TransportConnectionStateRegister newRegister = new MapTransportConnectionStateRegister(); newRegister.intialize(connectionStateRegister); connectionStateRegister = newRegister; } cs = connectionStateRegister.registerConnectionState(connectionId, state); return cs; }
public TransportConnectionState lookupConnectionState(ProducerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a producer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
protected synchronized TransportConnectionState registerConnectionState(ConnectionId connectionId, TransportConnectionState state) { TransportConnectionState cs = null; if (!connectionStateRegister.isEmpty() && !connectionStateRegister.doesHandleMultipleConnectionStates()) { // swap implementations TransportConnectionStateRegister newRegister = new MapTransportConnectionStateRegister(); newRegister.intialize(connectionStateRegister); connectionStateRegister = newRegister; } cs = connectionStateRegister.registerConnectionState(connectionId, state); return cs; }
public TransportConnectionState lookupConnectionState(SessionId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a session from a connection that had not been registered: " + id.getParentId()); } return cs; }
protected synchronized TransportConnectionState registerConnectionState(ConnectionId connectionId, TransportConnectionState state) { TransportConnectionState cs = null; if (!connectionStateRegister.isEmpty() && !connectionStateRegister.doesHandleMultipleConnectionStates()) { // swap implementations TransportConnectionStateRegister newRegister = new MapTransportConnectionStateRegister(); newRegister.intialize(connectionStateRegister); connectionStateRegister = newRegister; } cs = connectionStateRegister.registerConnectionState(connectionId, state); return cs; }
public TransportConnectionState lookupConnectionState(SessionId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a session from a connection that had not been registered: " + id.getParentId()); } return cs; }
protected synchronized TransportConnectionState registerConnectionState(ConnectionId connectionId, TransportConnectionState state) { TransportConnectionState cs = null; if (!connectionStateRegister.isEmpty() && !connectionStateRegister.doesHandleMultipleConnectionStates()) { // swap implementations TransportConnectionStateRegister newRegister = new MapTransportConnectionStateRegister(); newRegister.intialize(connectionStateRegister); connectionStateRegister = newRegister; } cs = connectionStateRegister.registerConnectionState(connectionId, state); return cs; }
public TransportConnectionState lookupConnectionState(SessionId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a session from a connection that had not been registered: " + id.getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(SessionId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a session from a connection that had not been registered: " + id.getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ConsumerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a consumer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ConsumerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a consumer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ProducerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a producer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ConsumerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a consumer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ProducerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a producer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ProducerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a producer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ProducerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a producer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }
public TransportConnectionState lookupConnectionState(ConsumerId id) { TransportConnectionState cs = lookupConnectionState(id.getConnectionId()); if (cs == null) { throw new IllegalStateException( "Cannot lookup a consumer from a connection that had not been registered: " + id.getParentId().getParentId()); } return cs; }