|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultEndpoint org.apache.camel.component.timer.TimerEndpoint
public class TimerEndpoint
Represents a timer endpoint that can generate periodic inbound PojoExchanges.
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 |
long |
getDelay()
|
long |
getPeriod()
|
Date |
getTime()
|
Timer |
getTimer()
|
String |
getTimerName()
|
boolean |
isDaemon()
|
boolean |
isFixedRate()
|
boolean |
isSingleton()
Wheter 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)
|
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
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processor
Exception
- can be thrownpublic String getTimerName()
public void setTimerName(String timerName)
public boolean isDaemon()
public void setDaemon(boolean daemon)
public long getDelay()
public void setDelay(long delay)
public boolean isFixedRate()
public void setFixedRate(boolean fixedRate)
public long getPeriod()
public void setPeriod(long period)
public Date getTime()
public void setTime(Date time)
public boolean isSingleton()
IsSingleton
public Timer getTimer()
public void setTimer(Timer timer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |