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.
| 构造器和说明 |
|---|
DNSStatefulObjectSemaphore(java.lang.String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 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 在类中 java.lang.Object