org.apache.activemq.transport
Interface TransportServer

All Superinterfaces:
Service
All Known Implementing Classes:
SslTransportServer, TcpTransportServer, TransportServerFilter, TransportServerSupport, TransportServerThreadSupport, UdpTransportServer, VMTransportServer

public interface TransportServer
extends Service

A TransportServer asynchronously accepts Transport objects and then delivers those objects to a TransportAcceptListener.


Method Summary
 URI getConnectURI()
           
 InetSocketAddress getSocketAddress()
           
 void setAcceptListener(TransportAcceptListener acceptListener)
          Registers an TransportAcceptListener 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.
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Method Detail

setAcceptListener

void setAcceptListener(TransportAcceptListener acceptListener)
Registers an TransportAcceptListener which is notified of accepted channels.

Parameters:
acceptListener -

setBrokerInfo

void setBrokerInfo(BrokerInfo brokerInfo)
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.


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.