Package org.apache.activemq.transport
Interface TransportServer
- All Superinterfaces:
Service
- All Known Implementing Classes:
NIOSSLTransportServer
,SslTransportServer
,TcpTransportServer
,TransportServerFilter
,TransportServerSupport
,TransportServerThreadSupport
,UdpTransportServer
A TransportServer asynchronously accepts objects and then
delivers those objects to a .
-
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
Some protocols allow link stealing by default (if 2 connections have the same clientID - the youngest wins).boolean
For 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.void
void
setAcceptListener
(TransportAcceptListener acceptListener) Registers an which is notified of accepted channels.void
setBrokerInfo
(BrokerInfo brokerInfo) Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.
-
Method Details
-
setAcceptListener
Registers an which is notified of accepted channels.- Parameters:
acceptListener
-
-
setBrokerInfo
Associates a broker info with the transport server so that the transport can do discovery advertisements of the broker.- Parameters:
brokerInfo
-
-
getConnectURI
URI getConnectURI() -
getSocketAddress
InetSocketAddress getSocketAddress()- 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
boolean isSslServer()For 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.- Returns:
- true if this transport server provides SSL level security over its connections.
-
isAllowLinkStealing
boolean isAllowLinkStealing()Some 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- Returns:
- true if allow link stealing is enabled.
-
getMaxConnectionExceededCount
long getMaxConnectionExceededCount() -
resetStatistics
void resetStatistics()
-