V - The value to handle.public abstract class LastValueHandler<V> extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_DELAY |
| Constructor and Description |
|---|
LastValueHandler(String name) |
LastValueHandler(String name,
long delayUntilNext) |
| Modifier and Type | Method and Description |
|---|---|
void |
forceValueChange() |
V |
getValue() |
abstract void |
handle(V value) |
void |
run() |
void |
setDelay(long delay)
Configure the delay between to executions if the value changed during
processing.
|
void |
setValue(V value) |
void |
start() |
void |
stop() |
public static final long DEFAULT_DELAY
public LastValueHandler(String name)
public LastValueHandler(String name, long delayUntilNext)
public void setDelay(long delay)
delay - public void start()
throws InterruptedException
InterruptedExceptionpublic void stop()
throws InterruptedException
InterruptedExceptionpublic V getValue()
public void setValue(V value)
public void forceValueChange()
public abstract void handle(V value)
Copyright © 2015–2017 openbase.org. All rights reserved.