org.mule.transport.polling.schedule
Class PollScheduler<T extends Runnable>

java.lang.Object
  extended by org.mule.transport.polling.schedule.PollScheduler<T>
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject, Scheduler
Direct Known Subclasses:
CronScheduler, FixedFrequencyScheduler

public abstract class PollScheduler<T extends Runnable>
extends Object
implements Scheduler

Abstract definition of a Scheduler for poll.

Since:
3.5.0

Field Summary
protected  T job
           
protected  String name
          The Scheduler name used as an identifier in the MuleRegistry
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
protected PollScheduler(String name, T job)
           
 
Method Summary
 String getName()
          Gets the name of the object
 void setName(String name)
          Sets the name of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.schedule.Scheduler
schedule
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 
Methods inherited from interface org.mule.api.lifecycle.Startable
start
 
Methods inherited from interface org.mule.api.lifecycle.Stoppable
stop
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 

Field Detail

job

protected T extends Runnable job

name

protected String name

The Scheduler name used as an identifier in the MuleRegistry

Constructor Detail

PollScheduler

protected PollScheduler(String name,
                        T job)
Method Detail

setName

public void setName(String name)
Description copied from interface: NameableObject
Sets the name of the object

Specified by:
setName in interface NameableObject
Parameters:
name - the name of the object

getName

public String getName()
Description copied from interface: NamedObject
Gets the name of the object

Specified by:
getName in interface NamedObject
Returns:
the name of the object


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.