public class TemporaryAccountWorker
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.CountDownLatch |
callerLatch
Caller synchronization
|
private static java.util.logging.Logger |
LOG
Logger.
|
private java.lang.Runnable |
task
Task to be executed
|
private boolean |
terminated
Termination flag
|
private java.util.concurrent.CountDownLatch |
workerLatch
Thread synchronization
|
Constructor and Description |
---|
TemporaryAccountWorker()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable task)
Execute specified task.
|
void |
run()
Task executor.
|
void |
terminate()
Terminate thread.
|
private static final java.util.logging.Logger LOG
private volatile boolean terminated
private volatile java.util.concurrent.CountDownLatch workerLatch
private volatile java.util.concurrent.CountDownLatch callerLatch
private volatile java.lang.Runnable task