| Constructor and Description |
|---|
AbortableHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Cause any other implementing threads to terminate fairly quickly, signalling abnormal termination
to its instigator, if necessary.
|
void |
add(Abortable a) |
void |
remove(Abortable a) |
void |
start()
Cause any other stopped threads to start.
|
void |
stop()
Cause any other implementing threads to stop temporarily.
|
public void add(Abortable a)
a - - abortable to holdpublic void remove(Abortable a)
a - - abortable to remove (once) if heldpublic void abort()
throws java.lang.Exception
AbortableImplementations of this method must be thread-safe.
public void start()
throws java.lang.Exception
AbortableImplementations of this method must be thread-safe.
Copyright © 2022. All rights reserved.