public static final class DNSStatefulObject.DNSStatefulObjectSemaphore
extends java.lang.Object
Implementation note: this class is based on Semaphore so that they can be released by the timeout timer.
| Constructor and Description |
|---|
DNSStatefulObject.DNSStatefulObjectSemaphore(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
signalEvent()
Signals the semaphore when the event arrives.
|
java.lang.String |
toString() |
void |
waitForEvent(long timeout)
Blocks the current thread until the event arrives or the timeout expires.
|
public DNSStatefulObject.DNSStatefulObjectSemaphore(java.lang.String name)
name - Semaphore name for debugging purposes.public void waitForEvent(long timeout)
timeout - wait period for the eventpublic void signalEvent()
public java.lang.String toString()
toString in class java.lang.Object