Package org.apache.activemq.transport
Class TransportServerFilter
java.lang.Object
org.apache.activemq.transport.TransportServerFilter
- All Implemented Interfaces:
Service,TransportServer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanSome protocols allow link stealing by default (if 2 connections have the same clientID - the youngest wins).booleanFor TransportServers that provide SSL connections to their connected peers they should return true here if and only if they populate the ConnectionInfo command presented to the Broker with the peers certificate chain so that the broker knows it can use that information to authenticate the connected peer.voidvoidsetAcceptListener(TransportAcceptListener acceptListener) Registers an which is notified of accepted channels.voidsetBrokerInfo(BrokerInfo brokerInfo) Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.voidstart()voidstop()
-
Field Details
-
next
-
-
Constructor Details
-
TransportServerFilter
- Parameters:
next-
-
-
Method Details
-
getConnectURI
- Specified by:
getConnectURIin interfaceTransportServer
-
setAcceptListener
Description copied from interface:TransportServerRegisters an which is notified of accepted channels.- Specified by:
setAcceptListenerin interfaceTransportServer
-
setBrokerInfo
Description copied from interface:TransportServerAssociates a broker info with the transport server so that the transport can do discovery advertisements of the broker.- Specified by:
setBrokerInfoin interfaceTransportServer
-
start
-
stop
-
getSocketAddress
- Specified by:
getSocketAddressin interfaceTransportServer- Returns:
- The socket address that this transport is accepting connections on or null if this does not or is not currently accepting connections on a socket.
-
isSslServer
public boolean isSslServer()Description copied from interface:TransportServerFor TransportServers that provide SSL connections to their connected peers they should return true here if and only if they populate the ConnectionInfo command presented to the Broker with the peers certificate chain so that the broker knows it can use that information to authenticate the connected peer.- Specified by:
isSslServerin interfaceTransportServer- Returns:
- true if this transport server provides SSL level security over its connections.
-
isAllowLinkStealing
public boolean isAllowLinkStealing()Description copied from interface:TransportServerSome protocols allow link stealing by default (if 2 connections have the same clientID - the youngest wins). This is the default for AMQP and MQTT. However, JMS 1.1 spec requires the opposite- Specified by:
isAllowLinkStealingin interfaceTransportServer- Returns:
- true if allow link stealing is enabled.
-
getMaxConnectionExceededCount
public long getMaxConnectionExceededCount()- Specified by:
getMaxConnectionExceededCountin interfaceTransportServer
-
resetStatistics
public void resetStatistics()- Specified by:
resetStatisticsin interfaceTransportServer
-