public class EventObject extends Handle
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0
Constructor and Description |
---|
EventObject()
Creates new event object without a name.
|
EventObject(long eventHandle)
Creates event object by specified handle.
|
EventObject(java.lang.String name)
Creates a new named event object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the event object.
|
java.lang.String |
getName()
Returns the event name.
|
void |
notifyEvent()
Notifies the event object.
|
void |
reset()
Resets the state of the event object.
|
void |
waitFor()
Waits for an event object.
|
clone, closeHandle, equals, waitFor, waitFor
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
public EventObject()
public EventObject(java.lang.String name)
name
- the name of the event; if this parameter is null then event object created without name.public EventObject(long eventHandle)
eventHandle
- native handle of event objectpublic void waitFor()
public void reset()
public void notifyEvent()
public void close()
public java.lang.String getName()