public static class
ConnectorScheduler.OneAtATimeRunnable
extends Object
implements Runnable
implements Runnable
Runnable
implementation which allows only one thread to run given runnable at a time.
Public Constructor Summary
ConnectorScheduler.OneAtATimeRunnable(Runnable toRun, String tag)
Create
ConnectorScheduler.OneAtATimeRunnable wrapper for toRun . |
|
ConnectorScheduler.OneAtATimeRunnable(Runnable toRun, Runnable alreadyRunning)
Create
ConnectorScheduler.OneAtATimeRunnable wrapper for toRun . |
Public Method Summary
void |
run()
|
Inherited Method Summary
Public Constructors
public ConnectorScheduler.OneAtATimeRunnable (Runnable toRun, String tag)
Create ConnectorScheduler.OneAtATimeRunnable
wrapper for toRun
.
Parameters
toRun | Runnable to run one at a time |
---|---|
tag | message to log when when toRun is already running. |
public ConnectorScheduler.OneAtATimeRunnable (Runnable toRun, Runnable alreadyRunning)
Create ConnectorScheduler.OneAtATimeRunnable
wrapper for toRun
.
Parameters
toRun | Runnable to run one at a time |
---|---|
alreadyRunning | Runnable to run when toRun is already running.
|