public static final class DNSStatefulObject.DNSStatefulObjectSemaphore extends Object
Implementation note: this class is based on Semaphore
so that they can be released by the timeout timer.
Constructor and Description |
---|
DNSStatefulObjectSemaphore(String name) |
Modifier and Type | Method and Description |
---|---|
void |
signalEvent()
Signals the semaphore when the event arrives.
|
String |
toString() |
void |
waitForEvent(long timeout)
Blocks the current thread until the event arrives or the timeout expires.
|
public DNSStatefulObjectSemaphore(String name)
name
- Semaphore name for debugging purposes.Copyright © 2002–2019 JmDNS. All rights reserved.