org.activemq.transport
Interface TransportServerChannel

All Superinterfaces:
Service
All Known Implementing Classes:
TransportServerChannelSupport

public interface TransportServerChannel
extends Service

Represents a Server which accepts incoming client connections in the form of TransportChannels which is used inside the JMS Broker

Version:
$Revision: 1.1.1.1 $

Method Summary
 InetSocketAddress getSocketAddress()
          An optional method to return the socket address if there is one on which this channel is listening.
 String getUrl()
          Returns the URL to connect to this connector
 void setTransportChannelListener(TransportChannelListener listener)
          Registers the listener to be used when new clients connect or disconnect
 void start()
          start listeneing for events
 void stop()
          close the ServerChannel
 

Method Detail

stop

public void stop()
          throws JMSException
close the ServerChannel

Specified by:
stop in interface Service
Throws:
JMSException

start

public void start()
           throws JMSException
start listeneing for events

Specified by:
start in interface Service
Throws:
JMSException - if an error occurs

setTransportChannelListener

public void setTransportChannelListener(TransportChannelListener listener)
Registers the listener to be used when new clients connect or disconnect

Parameters:
listener - the listener to be invoked when a client connects or disconnects

getUrl

public String getUrl()
Returns the URL to connect to this connector


getSocketAddress

public InetSocketAddress getSocketAddress()
An optional method to return the socket address if there is one on which this channel is listening. An implementation may return null for this operation; its mostly intended to be used for tooling to be able to access socket address information.

Returns:


Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.