org.garret.jipc
Interface JIPCEvent

All Superinterfaces:
JIPCPrimitive

public interface JIPCEvent
extends JIPCPrimitive

Event synchronization object. It provides the same functionality as event object in Win32. Event can be either with manual reset or with automatic reset. In first case evet remains in signaled state until been explcitely reset by user. Evet with automatic reset is switched to non-signled state after first wait request.

Semantic of methods inherited from JIPCPrimitive:

waitFor
Wait until event is set to signaled state. If event is already in signaled state then method immediatly returns and event with automatic reset is switched to non-signaled state
reset
Switch event to non-signaled state


Field Summary
 
Fields inherited from interface org.garret.jipc.JIPCPrimitive
DEFAULT_RANK
 
Method Summary
 void pulse()
          Wakeup one or all waiting sessions.
 void signal()
          Set event to the signaled state.
 
Methods inherited from interface org.garret.jipc.JIPCPrimitive
alreadyExists, close, getName, priorityWait, priorityWait, reset, waitFor, waitFor
 

Method Detail

pulse

public void pulse()
           throws JIPCException,
                  java.io.IOException
Wakeup one or all waiting sessions.

JIPCException
java.io.IOException

signal

public void signal()
            throws JIPCException,
                   java.io.IOException
Set event to the signaled state.

JIPCException
java.io.IOException