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
Method Summary |
void |
pulse()
Wakeup one or all waiting sessions.
|
void |
signal()
Set event to the signaled state.
|
pulse
public void pulse()
throws JIPCException,
java.io.IOException
- Wakeup one or all waiting sessions.
- For event with manual reset policy, this method
wakes up all waiting sessions.
- For even with automatic reset policy, this method
invokes exactly one waiting session if such exists
JIPCException
java.io.IOException
signal
public void signal()
throws JIPCException,
java.io.IOException
- Set event to the signaled state.
- For event with manual reset policy, this method
wakes up all waiting sessions and switch event to the signaled state
- For even with automatic reset policy, this method
invokes exactly one waiting session if such exists, otherwise
switcheds event to the signled state
JIPCException
java.io.IOException