|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.timer.TimerEndpoint
@ManagedResource(description="Managed Timer Endpoint") public class TimerEndpoint
Represents a timer endpoint that can generate periodic inbound exchanges triggered by a timer.
Constructor Summary | |
---|---|
TimerEndpoint()
|
|
TimerEndpoint(String endpointUri)
|
|
TimerEndpoint(String endpointUri,
Timer timer)
|
|
TimerEndpoint(String fullURI,
TimerComponent component,
String timerName)
|
Method Summary | |
---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
String |
getCamelId()
|
long |
getDelay()
|
String |
getEndpointUri()
Returns the string representation of the endpoint URI |
Object |
getManagedObject(TimerEndpoint object)
Gets the managed object |
long |
getPeriod()
|
Date |
getTime()
|
Timer |
getTimer()
|
String |
getTimerName()
|
boolean |
isDaemon()
|
boolean |
isFixedRate()
|
boolean |
isSingleton()
Whether this class supports being singleton or not. |
void |
setDaemon(boolean daemon)
|
void |
setDelay(long delay)
|
void |
setFixedRate(boolean fixedRate)
|
void |
setPeriod(long period)
|
void |
setTime(Date time)
|
void |
setTimer(Timer timer)
|
void |
setTimerName(String timerName)
|
void |
start()
Starts the service |
void |
stop()
Stops the service |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimerEndpoint()
public TimerEndpoint(String fullURI, TimerComponent component, String timerName)
public TimerEndpoint(String endpointUri, Timer timer)
public TimerEndpoint(String endpointUri)
Method Detail |
---|
public Producer createProducer() throws Exception
Endpoint
createProducer
in interface Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
processor
- the given processor
Exception
- can be thrownpublic Object getManagedObject(TimerEndpoint object)
ManagementAware
getManagedObject
in interface ManagementAware<TimerEndpoint>
object
- the object to be managed
public void start() throws Exception
Service
start
in interface Service
start
in class DefaultEndpoint
Exception
- is thrown if starting failedpublic void stop() throws Exception
Service
stop
in interface Service
stop
in class DefaultEndpoint
Exception
- is thrown if stopping failed@ManagedAttribute(description="Timer Name") public String getTimerName()
@ManagedAttribute(description="Timer Name") public void setTimerName(String timerName)
@ManagedAttribute(description="Timer Daemon") public boolean isDaemon()
@ManagedAttribute(description="Timer Daemon") public void setDaemon(boolean daemon)
@ManagedAttribute(description="Timer Delay") public long getDelay()
@ManagedAttribute(description="Timer Delay") public void setDelay(long delay)
@ManagedAttribute(description="Timer FixedRate") public boolean isFixedRate()
@ManagedAttribute(description="Timer FixedRate") public void setFixedRate(boolean fixedRate)
@ManagedAttribute(description="Timer Period") public long getPeriod()
@ManagedAttribute(description="Timer Period") public void setPeriod(long period)
public Date getTime()
public void setTime(Date time)
@ManagedAttribute(description="Singleton") public boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
public Timer getTimer()
public void setTimer(Timer timer)
@ManagedAttribute(description="Camel id") public String getCamelId()
@ManagedAttribute(description="Endpoint Uri") public String getEndpointUri()
Endpoint
getEndpointUri
in interface Endpoint
getEndpointUri
in class DefaultEndpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |