|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The Message Broker which routes messages, maintains subscriptions and connections, acknowlegdges messages and handles transactions.
| Nested Class Summary |
| Nested classes inherited from class org.codehaus.activemq.capacity.CapacityMonitor |
CapacityMonitor.BasicCapacityMonitor |
| Method Summary | |
void |
acknowledgeMessage(BrokerClient client,
MessageAck ack)
Acknowledge consumption of a message by the Message Consumer |
void |
acknowledgeTransactedMessage(BrokerClient client,
java.lang.String transactionId,
MessageAck ack)
Acknowledge consumption of a message within a transaction |
void |
addMessageConsumer(BrokerClient client,
ConsumerInfo info)
Add an active message consumer |
void |
cleanUpClient(BrokerClient client)
A hint to the broker that an BrokerClient has stopped This enables the broker to clean-up any outstanding processing that may be outstanding |
void |
commitTransaction(BrokerClient client,
ActiveMQXid xid,
boolean onePhase)
|
void |
commitTransaction(BrokerClient client,
java.lang.String transactionId)
commit a transaction |
void |
deleteSubscription(java.lang.String clientId,
java.lang.String subscriberName)
Delete a durable subscriber |
java.lang.String |
getBrokerName()
|
PersistenceAdapter |
getPersistenceAdapter()
|
ActiveMQXid[] |
getPreparedTransactions(BrokerClient client)
gets a list of all the prepared xa transactions. |
java.io.File |
getTempDir()
Get a temp directory - used for spooling |
int |
prepareTransaction(BrokerClient client,
ActiveMQXid xid)
|
void |
redeliverMessage(BrokerClient client,
MessageAck ack)
Called after a rollback of a JMS transaction to redeliver the message to the consumers dispatch queue |
void |
removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
remove an active message consumer |
void |
rollbackTransaction(BrokerClient client,
ActiveMQXid xid)
|
void |
rollbackTransaction(BrokerClient client,
java.lang.String transactionId)
rollback a transaction |
void |
sendMessage(BrokerClient client,
ActiveMQMessage message)
send a message to the broker |
void |
sendTransactedMessage(BrokerClient client,
java.lang.String transactionId,
ActiveMQMessage message)
send a message to the broker within a transaction |
void |
setPersistenceAdapter(PersistenceAdapter persistenceAdapter)
|
void |
startTransaction(BrokerClient client,
ActiveMQXid xid)
|
void |
startTransaction(BrokerClient client,
java.lang.String transactionId)
start a transaction |
| Methods inherited from interface org.codehaus.activemq.service.Service |
start, stop |
| Methods inherited from interface org.codehaus.activemq.capacity.CapacityMonitor |
addCapacityEventListener, getCurrentCapacity, getCurrentValue, getName, getRoundedCapacity, getRoundingFactor, getValueLimit, removeCapacityEventListener, setCurrentValue, setName, setRoundingFactor, setValueLimit |
| Method Detail |
public void addMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
client - info -
JMSException
public void removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
client - info -
JMSException
public ActiveMQXid[] getPreparedTransactions(BrokerClient client)
throws XAException
client -
XAException
public void acknowledgeMessage(BrokerClient client,
MessageAck ack)
throws JMSException
client - ack -
JMSException
public void acknowledgeTransactedMessage(BrokerClient client,
java.lang.String transactionId,
MessageAck ack)
throws JMSException
client - transactionId - ack -
JMSException
public void redeliverMessage(BrokerClient client,
MessageAck ack)
throws JMSException
client - ack -
JMSException
public void sendMessage(BrokerClient client,
ActiveMQMessage message)
throws JMSException
client - message -
JMSException
public void sendTransactedMessage(BrokerClient client,
java.lang.String transactionId,
ActiveMQMessage message)
throws JMSException
client - transactionId - message -
JMSException
public void cleanUpClient(BrokerClient client)
throws JMSException
client -
JMSException
public void deleteSubscription(java.lang.String clientId,
java.lang.String subscriberName)
throws JMSException
clientId - subscriberName -
JMSException - if the subscriber doesn't exist or is still active
public void startTransaction(BrokerClient client,
java.lang.String transactionId)
throws JMSException
client - transactionId -
JMSException
public void commitTransaction(BrokerClient client,
java.lang.String transactionId)
throws JMSException
client - transactionId -
JMSException
public void rollbackTransaction(BrokerClient client,
java.lang.String transactionId)
throws JMSException
client - transactionId -
JMSException
public void startTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
client - xid -
XAException
public int prepareTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
client - xid -
XAException
public void rollbackTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
client - xid -
XAException
public void commitTransaction(BrokerClient client,
ActiveMQXid xid,
boolean onePhase)
throws XAException
client - xid - onePhase -
XAExceptionpublic java.io.File getTempDir()
public java.lang.String getBrokerName()
public PersistenceAdapter getPersistenceAdapter()
public void setPersistenceAdapter(PersistenceAdapter persistenceAdapter)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||