public class IntervalBehavior<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IntervalBehavior.StepResultListener<E,F> |
| Modifier and Type | Field and Description |
|---|---|
protected IInternalAccess |
component
The component.
|
protected long |
delay
The delay.
|
protected java.lang.String |
id
The current id.
|
protected boolean |
realtime
The realtime flag.
|
protected IComponentStep<T> |
step
The component step.
|
| Constructor and Description |
|---|
IntervalBehavior(IInternalAccess component,
long delay,
IComponentStep<T> step,
boolean realtime)
Create a new lease time handling object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDelay()
Get the delay.
|
java.lang.String |
getId()
Get the id.
|
IComponentStep<T> |
getStep()
Get the step.
|
void |
setDelay(long delay)
Set the delay.
|
void |
setId(java.lang.String sendid)
Set the id.
|
void |
setStep(IComponentStep<T> step)
Set the step.
|
IFuture<java.lang.Void> |
startBehavior()
Start sending awareness infos.
|
IFuture<java.lang.Void> |
stopBehavior()
(Ends automatically when a new send behaviour is started).
|
protected IInternalAccess component
protected IComponentStep<T> step
protected long delay
protected java.lang.String id
protected boolean realtime
public IntervalBehavior(IInternalAccess component, long delay, IComponentStep<T> step, boolean realtime)
public IFuture<java.lang.Void> startBehavior()
public IFuture<java.lang.Void> stopBehavior()
public java.lang.String getId()
public void setId(java.lang.String sendid)
id - The id to set.public IComponentStep<T> getStep()
public void setStep(IComponentStep<T> step)
step - The step to set.public long getDelay()
public void setDelay(long delay)
delay - The delay to set.