public abstract class BeginEndExecutor extends Object
| Constructor and Description |
|---|
BeginEndExecutor(int maxIntervalBetweenStartAndEnd)
Creates an executor that only executes the first and the last
call to a given action.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doBeginAction()
Called when the last call is made for the executor
|
protected abstract void |
doEndAction()
Called when the first call is made for the executor
|
void |
execute()
Throttles the invocations on the executor
|
public BeginEndExecutor(int maxIntervalBetweenStartAndEnd)
end - if more than maxIntervalBetweenStartAndEnd
milliseconds has passed since the previous call, considers that
the current call is a begin call.Copyright © 2015. All rights reserved.