|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.broker.impl.BrokerClientImpl
A Broker client side proxy representing a JMS Connnection
| Constructor Summary | |
BrokerClientImpl()
Default Constructor of BrokerClientImpl |
|
| Method Summary | |
void |
cleanUp()
Called when the transport has been terminated, so do our best to shut down any resources and deregister from any subscriptions etc |
protected void |
close()
|
void |
consume(Packet packet)
Consume a Packet from the underlying TransportChannel for processing |
void |
consumeConnectionInfo(ConnectionInfo info)
register with the Broker |
void |
consumeConsumerInfo(ConsumerInfo info)
Register/deregister MessageConsumer with the Broker |
void |
dispatch(ActiveMQMessage message)
Dispatch an ActiveMQMessage to the end client |
int |
getCapacity()
Get the Capacity for in-progress messages at the peer (probably a JMSConnection) Legimate values between 0-100. |
TransportChannel |
getChannel()
|
java.lang.String |
getClientID()
Returns the client ID for this client if the client has been initialised |
void |
initialize(BrokerConnector brokerConnector,
TransportChannel channel)
Initialize the BrokerClient |
boolean |
isBrokerConnection()
|
boolean |
isSlowConsumer()
Get an indication if the peer should be considered as a slow consumer |
void |
onException(JMSException jmsEx)
|
protected void |
send(Packet packet)
|
void |
start()
start consuming messages |
void |
stop()
stop consuming messages |
java.lang.String |
toString()
|
void |
updateBrokerCapacity(int capacity)
Update the peer Connection about the Broker's capacity for messages |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BrokerClientImpl()
| Method Detail |
public void initialize(BrokerConnector brokerConnector,
TransportChannel channel)
initialize in interface BrokerClientbrokerConnector - channel - public void onException(JMSException jmsEx)
onException in interface ExceptionListenerExceptionListener.onException(javax.jms.JMSException)public java.lang.String toString()
public void dispatch(ActiveMQMessage message)
dispatch in interface BrokerClientmessage - public boolean isBrokerConnection()
isBrokerConnection in interface BrokerClientpublic int getCapacity()
getCapacity in interface BrokerClientpublic java.lang.String getClientID()
BrokerClient
getClientID in interface BrokerClientpublic TransportChannel getChannel()
getChannel in interface BrokerClientpublic boolean isSlowConsumer()
isSlowConsumer in interface BrokerClientpublic void consume(Packet packet)
consume in interface PacketListenerpacket -
public void consumeConsumerInfo(ConsumerInfo info)
throws JMSException
info -
JMSExceptionpublic void updateBrokerCapacity(int capacity)
updateBrokerCapacity in interface BrokerClientcapacity -
public void consumeConnectionInfo(ConnectionInfo info)
throws JMSException
info -
JMSException
public void start()
throws JMSException
start in interface ServiceJMSException
public void stop()
throws JMSException
stop in interface ServiceJMSExceptionpublic void cleanUp()
BrokerClient
cleanUp in interface BrokerClientprotected void send(Packet packet)
protected void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||