public class CronJob<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> |
command
The command.
|
protected IFilter<java.lang.Long> |
filter
The filter.
|
protected java.lang.String |
id
The id.
|
protected java.lang.String |
pattern
The time pattern.
|
Constructor and Description |
---|
CronJob()
Create a new cronjob.
|
CronJob(java.lang.String pattern,
IFilter<java.lang.Long> filter,
IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
Create a new cron job.
|
Modifier and Type | Method and Description |
---|---|
IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> |
getCommand()
Get the command.
|
IFilter<java.lang.Long> |
getFilter()
Get the filter.
|
java.lang.String |
getId()
Get the id.
|
java.lang.String |
getPattern()
Get the pattern.
|
void |
setCommand(IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
Set the command.
|
void |
setFilter(IFilter<java.lang.Long> filter)
Set the filter.
|
void |
setId(java.lang.String id)
Set the id.
|
void |
setPattern(java.lang.String pattern)
Set the pattern.
|
protected java.lang.String id
protected java.lang.String pattern
protected IFilter<java.lang.Long> filter
protected IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command
public CronJob()
public CronJob(java.lang.String pattern, IFilter<java.lang.Long> filter, IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
public java.lang.String getId()
public void setId(java.lang.String id)
id
- The id to set.public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- The pattern to set.public IFilter<java.lang.Long> getFilter()
public void setFilter(IFilter<java.lang.Long> filter)
filter
- The filter to set.public IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> getCommand()
public void setCommand(IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
command
- The command to set.