public class AsyncAlarmForwarder extends java.lang.Thread implements BladeInsertResponse
BLADE_INSERT_RESPONSE
Constructor and Description |
---|
AsyncAlarmForwarder(java.lang.ThreadGroup group,
BladeInsertResponse target)
Creates a front-end for a target BladeInsertResponse object.
|
Modifier and Type | Method and Description |
---|---|
void |
aborted()
Direct/synchronous "aborted()" call on the target
|
void |
alarm(AlarmEvent alarm)
Put the provided alarm in a queue for asynchronous forwarding
to the target.
|
void |
clear()
Discards all alarms pending in the queue.
|
void |
completed()
Direct/synchronous "completed()" call on the target
|
void |
interrupt()
Interruption override: traps interrupt for thread
termination without generating InterruptedException
in possibly active blocking operations (network I/O).
|
void |
run()
Thread activity: get alarms from the queue and forward them
until the thread is interrupted.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public AsyncAlarmForwarder(java.lang.ThreadGroup group, BladeInsertResponse target)
group
- the thread group this thread will belong totarget
- the target BladeInsertResponse objectpublic void clear()
public void alarm(AlarmEvent alarm)
alarm
in interface BladeInsertResponse
alarm
- the alarm to forward to the targetpublic void aborted()
aborted
in interface BladeInsertResponse
public void completed()
completed
in interface BladeInsertResponse
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void interrupt()
interrupt
in class java.lang.Thread