|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.broker.impl.BrokerClientImpl
A Broker client side proxy representing a JMS Connnection
| Constructor Summary | |
BrokerClientImpl()
Default Constructor of BrokerClientImpl |
|
| Method Summary | |
void |
cleanUp()
cleanup |
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 |
BrokerConnector |
getBrokerConnector()
|
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()
|
ConnectionInfo |
getConnectionInfo()
|
javax.security.auth.Subject |
getSubject()
|
void |
initialize(BrokerConnector brokerConnector,
TransportChannel channel)
Initialize the BrokerClient |
boolean |
isBrokerConnection()
|
boolean |
isClusteredConnection()
|
boolean |
isSlowConsumer()
Get an indication if the peer should be considered as a slow consumer |
void |
onException(javax.jms.JMSException jmsEx)
|
protected void |
send(Packet packet)
|
void |
setSubject(javax.security.auth.Subject subject)
Associcates a subject with BrokerClient. |
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 |
void |
validateConnection(int timeout)
validate the connection |
| 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 BrokerConnector getBrokerConnector()
getBrokerConnector in interface BrokerClientpublic ConnectionInfo getConnectionInfo()
getConnectionInfo in interface BrokerClientpublic void onException(javax.jms.JMSException jmsEx)
onException in interface javax.jms.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 boolean isClusteredConnection()
isClusteredConnection in interface BrokerClientpublic int getCapacity()
getCapacity in interface BrokerClientpublic java.lang.String getClientID()
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 javax.jms.JMSException
info -
javax.jms.JMSExceptionpublic void updateBrokerCapacity(int capacity)
updateBrokerCapacity in interface BrokerClientcapacity -
public void consumeConnectionInfo(ConnectionInfo info)
throws javax.jms.JMSException
info -
javax.jms.JMSException
public void start()
throws javax.jms.JMSException
start in interface Servicejavax.jms.JMSException
public void stop()
throws javax.jms.JMSException
stop in interface Servicejavax.jms.JMSExceptionpublic void cleanUp()
cleanUp in interface BrokerClientprotected void send(Packet packet)
public void validateConnection(int timeout)
throws javax.jms.JMSException
validateConnection in interface BrokerClienttimeout -
javax.jms.JMSExceptionprotected void close()
public void setSubject(javax.security.auth.Subject subject)
BrokerClient
setSubject in interface BrokerClientsubject - public javax.security.auth.Subject getSubject()
getSubject in interface BrokerClient
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||