com.jniwrapper.win32.system
Class EventObject

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Pointer.Void
          extended by com.jniwrapper.win32.Handle
              extended by com.jniwrapper.win32.system.EventObject
All Implemented Interfaces:
com.jniwrapper.IntegerParameter, com.jniwrapper.PointerParameter

public class EventObject
extends Handle

This class represents a Windows Event object.


Field Summary
 
Fields inherited from class com.jniwrapper.win32.Handle
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.jniwrapper.win32.Handle
clone, closeHandle, equals, waitFor, waitFor
 
Methods inherited from class com.jniwrapper.Pointer.Void
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, acceptIOPerformer, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventObject

public EventObject()
Creates new event object without a name.


EventObject

public EventObject(java.lang.String name)
Creates a new named event object.

Parameters:
name - the name of the event; if this parameter is null then event object created without name.

EventObject

public EventObject(long eventHandle)
Creates event object by specified handle.

Parameters:
eventHandle - native handle of event object
Method Detail

waitFor

public void waitFor()
Waits for an event object.


reset

public void reset()
Resets the state of the event object.


notifyEvent

public void notifyEvent()
Notifies the event object.


close

public void close()
Closes the event object.


getName

public java.lang.String getName()
Returns the event name.

Returns:
name