public class CamelRoutesBroker extends BrokerFilter
next| Constructor and Description |
|---|
CamelRoutesBroker(Broker next) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(ConsumerBrokerExchange consumerExchange,
MessageAck ack)
Used to acknowledge the receipt of a message by a client.
|
void |
beginTransaction(ConnectionContext context,
TransactionId xid)
Starts a transaction.
|
void |
commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
Commits a transaction.
|
void |
forgetTransaction(ConnectionContext context,
TransactionId transactionId)
Forgets a transaction.
|
int |
getCheckPeriod() |
String |
getRoutesFile() |
void |
isFull(ConnectionContext context,
Destination destination,
Usage usage)
Called when a Usage reaches a limit
|
void |
messageConsumed(ConnectionContext context,
MessageReference messageReference)
called when message is consumed
|
void |
messageDelivered(ConnectionContext context,
MessageReference messageReference)
Called when message is delivered to the broker
|
void |
messageDiscarded(ConnectionContext context,
Subscription sub,
MessageReference messageReference)
Called when a message is discarded - e.g.
|
Response |
messagePull(ConnectionContext context,
MessagePull pull)
Allows a consumer to pull a message from a queue
|
void |
nowMasterBroker()
called when the broker becomes the master in a master/slave
configuration
|
void |
postProcessDispatch(MessageDispatch messageDispatch)
Notify the Broker that a dispatch has happened
|
int |
prepareTransaction(ConnectionContext context,
TransactionId xid)
Prepares a transaction.
|
void |
preProcessDispatch(MessageDispatch messageDispatch)
Notify the Broker that a dispatch is going to happen
|
void |
processConsumerControl(ConsumerBrokerExchange consumerExchange,
ConsumerControl control) |
void |
reapplyInterceptor() |
void |
rollbackTransaction(ConnectionContext context,
TransactionId xid)
Rollsback a transaction.
|
void |
send(ProducerBrokerExchange producerExchange,
Message message)
Overide methods to pause the broker whilst camel routes are loaded
|
boolean |
sendToDeadLetterQueue(ConnectionContext context,
MessageReference messageReference,
Subscription subscription,
Throwable poisonCause)
A message needs to go the a DLQ
|
void |
setCheckPeriod(int checkPeriod) |
void |
setRoutesFile(String routesFile) |
void |
start() |
void |
stop() |
addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, brokerServiceStarted, fastProducer, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isStopped, messageExpired, networkBridgeStarted, networkBridgeStopped, processDispatchNotification, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, setAdminConnectionContext, slowConsumerpublic CamelRoutesBroker(Broker next)
public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception
send in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.Exception - TODOpublic void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception
Regionacknowledge in interface Regionacknowledge in class BrokerFilterconsumerExchange - the environment the operation is being executed under.Exception - TODOpublic Response messagePull(ConnectionContext context, MessagePull pull) throws Exception
RegionmessagePull in interface RegionmessagePull in class BrokerFilterExceptionpublic void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control)
processConsumerControl in interface RegionprocessConsumerControl in class BrokerFilterpublic void reapplyInterceptor()
reapplyInterceptor in interface RegionreapplyInterceptor in class BrokerFilterpublic void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception
BrokerbeginTransaction in interface BrokerbeginTransaction in class BrokerFilterException - TODOpublic int prepareTransaction(ConnectionContext context, TransactionId xid) throws Exception
BrokerprepareTransaction in interface BrokerprepareTransaction in class BrokerFilterException - TODOpublic void rollbackTransaction(ConnectionContext context, TransactionId xid) throws Exception
BrokerrollbackTransaction in interface BrokerrollbackTransaction in class BrokerFilterException - TODOpublic void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws Exception
BrokercommitTransaction in interface BrokercommitTransaction in class BrokerFilterException - TODOpublic void forgetTransaction(ConnectionContext context, TransactionId transactionId) throws Exception
BrokerforgetTransaction in interface BrokerforgetTransaction in class BrokerFilterExceptionpublic void preProcessDispatch(MessageDispatch messageDispatch)
BrokerpreProcessDispatch in interface BrokerpreProcessDispatch in class BrokerFilterpublic void postProcessDispatch(MessageDispatch messageDispatch)
BrokerpostProcessDispatch in interface BrokerpostProcessDispatch in class BrokerFilterpublic boolean sendToDeadLetterQueue(ConnectionContext context, MessageReference messageReference, Subscription subscription, Throwable poisonCause)
BrokersendToDeadLetterQueue in interface BrokersendToDeadLetterQueue in class BrokerFilterpoisonCause - reason for dlq submission, may be nullpublic void messageConsumed(ConnectionContext context, MessageReference messageReference)
BrokermessageConsumed in interface BrokermessageConsumed in class BrokerFilterpublic void messageDelivered(ConnectionContext context, MessageReference messageReference)
BrokermessageDelivered in interface BrokermessageDelivered in class BrokerFilterpublic void messageDiscarded(ConnectionContext context, Subscription sub, MessageReference messageReference)
BrokermessageDiscarded in interface BrokermessageDiscarded in class BrokerFilterpublic void isFull(ConnectionContext context, Destination destination, Usage usage)
BrokerisFull in interface BrokerisFull in class BrokerFilterpublic void nowMasterBroker()
BrokernowMasterBroker in interface BrokernowMasterBroker in class BrokerFilterpublic String getRoutesFile()
public void setRoutesFile(String routesFile)
public int getCheckPeriod()
public void setCheckPeriod(int checkPeriod)
public void start() throws Exception
start in interface Servicestart in class BrokerFilterExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.