Package org.apache.activemq.broker
Class SingleTransportConnectionStateRegister
- java.lang.Object
-
- org.apache.activemq.broker.SingleTransportConnectionStateRegister
-
- All Implemented Interfaces:
TransportConnectionStateRegister
public class SingleTransportConnectionStateRegister extends Object implements TransportConnectionStateRegister
-
-
Constructor Summary
Constructors Constructor Description SingleTransportConnectionStateRegister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
doesHandleMultipleConnectionStates()
void
intialize(TransportConnectionStateRegister other)
boolean
isEmpty()
List<TransportConnectionState>
listConnectionStates()
TransportConnectionState
lookupConnectionState(String connectionId)
TransportConnectionState
lookupConnectionState(ConnectionId connectionId)
TransportConnectionState
lookupConnectionState(ConsumerId id)
TransportConnectionState
lookupConnectionState(ProducerId id)
TransportConnectionState
lookupConnectionState(SessionId id)
Map<ConnectionId,TransportConnectionState>
mapStates()
TransportConnectionState
registerConnectionState(ConnectionId connectionId, TransportConnectionState state)
TransportConnectionState
unregisterConnectionState(ConnectionId connectionId)
-
-
-
Method Detail
-
registerConnectionState
public TransportConnectionState registerConnectionState(ConnectionId connectionId, TransportConnectionState state)
- Specified by:
registerConnectionState
in interfaceTransportConnectionStateRegister
-
unregisterConnectionState
public TransportConnectionState unregisterConnectionState(ConnectionId connectionId)
- Specified by:
unregisterConnectionState
in interfaceTransportConnectionStateRegister
-
listConnectionStates
public List<TransportConnectionState> listConnectionStates()
- Specified by:
listConnectionStates
in interfaceTransportConnectionStateRegister
-
lookupConnectionState
public TransportConnectionState lookupConnectionState(String connectionId)
- Specified by:
lookupConnectionState
in interfaceTransportConnectionStateRegister
-
lookupConnectionState
public TransportConnectionState lookupConnectionState(ConsumerId id)
- Specified by:
lookupConnectionState
in interfaceTransportConnectionStateRegister
-
lookupConnectionState
public TransportConnectionState lookupConnectionState(ProducerId id)
- Specified by:
lookupConnectionState
in interfaceTransportConnectionStateRegister
-
lookupConnectionState
public TransportConnectionState lookupConnectionState(SessionId id)
- Specified by:
lookupConnectionState
in interfaceTransportConnectionStateRegister
-
lookupConnectionState
public TransportConnectionState lookupConnectionState(ConnectionId connectionId)
- Specified by:
lookupConnectionState
in interfaceTransportConnectionStateRegister
-
doesHandleMultipleConnectionStates
public boolean doesHandleMultipleConnectionStates()
- Specified by:
doesHandleMultipleConnectionStates
in interfaceTransportConnectionStateRegister
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceTransportConnectionStateRegister
-
intialize
public void intialize(TransportConnectionStateRegister other)
- Specified by:
intialize
in interfaceTransportConnectionStateRegister
-
mapStates
public Map<ConnectionId,TransportConnectionState> mapStates()
- Specified by:
mapStates
in interfaceTransportConnectionStateRegister
-
clear
public void clear()
- Specified by:
clear
in interfaceTransportConnectionStateRegister
-
-