Class SchedulerBroker
- java.lang.Object
- 
- org.apache.activemq.broker.BrokerFilter
- 
- org.apache.activemq.broker.scheduler.SchedulerBroker
 
 
- 
- All Implemented Interfaces:
- Broker,- Region,- JobListener,- Service
 
 public class SchedulerBroker extends BrokerFilter implements JobListener 
- 
- 
Field Summary- 
Fields inherited from class org.apache.activemq.broker.BrokerFilternext
 
- 
 - 
Constructor SummaryConstructors Constructor Description SchedulerBroker(BrokerService brokerService, Broker next, JobSchedulerStore store)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JobSchedulergetInternalScheduler()JobSchedulergetJobScheduler()intgetMaxRepeatAllowed()voidscheduledJob(String id, ByteSequence job)A Job that has been scheduled is now ready to be fired.voidsend(ProducerBrokerExchange producerExchange, Message messageSend)Send a message to the broker to using the specified destination.protected voidsendScheduledJob(ConnectionContext context, Job job, ActiveMQDestination replyTo)voidsetMaxRepeatAllowed(int maxRepeatAllowed)voidstart()voidstop()- 
Methods inherited from class org.apache.activemq.broker.BrokerFilteracknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, virtualDestinationAdded, virtualDestinationRemoved
 
- 
 
- 
- 
- 
Constructor Detail- 
SchedulerBrokerpublic SchedulerBroker(BrokerService brokerService, Broker next, JobSchedulerStore store) throws Exception - Throws:
- Exception
 
 
- 
 - 
Method Detail- 
getJobSchedulerpublic JobScheduler getJobScheduler() throws Exception - Throws:
- Exception
 
 - 
startpublic void start() throws Exception- Specified by:
- startin interface- Service
- Overrides:
- startin class- BrokerFilter
- Throws:
- Exception
 
 - 
stoppublic void stop() throws Exception- Specified by:
- stopin interface- Service
- Overrides:
- stopin class- BrokerFilter
- Throws:
- Exception
 
 - 
sendpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception Description copied from interface:RegionSend a message to the broker to using the specified destination. The destination specified in the message does not need to match the destination the message is sent to. This is handy in case the message is being sent to a dead letter destination.- Specified by:
- sendin interface- Region
- Overrides:
- sendin class- BrokerFilter
- Parameters:
- producerExchange- the environment the operation is being executed under.
- Throws:
- Exception- TODO
 
 - 
scheduledJobpublic void scheduledJob(String id, ByteSequence job) Description copied from interface:JobListenerA Job that has been scheduled is now ready to be fired. The Job is passed in its raw byte form and must be un-marshaled before being delivered.- Specified by:
- scheduledJobin interface- JobListener
- Parameters:
- id- The unique Job Id of the Job that is ready to fire.
- job- The job that is now ready, delivered in byte form.
 
 - 
getInternalSchedulerprotected JobScheduler getInternalScheduler() throws Exception - Throws:
- Exception
 
 - 
sendScheduledJobprotected void sendScheduledJob(ConnectionContext context, Job job, ActiveMQDestination replyTo) throws Exception - Throws:
- Exception
 
 - 
getMaxRepeatAllowedpublic int getMaxRepeatAllowed() 
 - 
setMaxRepeatAllowedpublic void setMaxRepeatAllowed(int maxRepeatAllowed) 
 
- 
 
-