org.apache.camel.component.timer
Class TimerEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.timer.TimerEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class TimerEndpoint
extends DefaultEndpoint

Represents a timer endpoint that can generate periodic inbound PojoExchanges.

Version:
$Revision: 736322 $

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 org.apache.camel.impl.DefaultEndpoint
configureProperties, convertTo, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimerEndpoint

public TimerEndpoint()

TimerEndpoint

public TimerEndpoint(String fullURI,
                     TimerComponent component,
                     String timerName)

TimerEndpoint

public TimerEndpoint(String endpointUri,
                     Timer timer)

TimerEndpoint

public TimerEndpoint(String endpointUri)
Method Detail

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

getTimerName

public String getTimerName()

setTimerName

public void setTimerName(String timerName)

isDaemon

public boolean isDaemon()

setDaemon

public void setDaemon(boolean daemon)

getDelay

public long getDelay()

setDelay

public void setDelay(long delay)

isFixedRate

public boolean isFixedRate()

setFixedRate

public void setFixedRate(boolean fixedRate)

getPeriod

public long getPeriod()

setPeriod

public void setPeriod(long period)

getTime

public Date getTime()

setTime

public void setTime(Date time)

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Wheter this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

getTimer

public Timer getTimer()

setTimer

public void setTimer(Timer timer)


Apache CAMEL