com.neeve.emx
Interface IEmxNwEvent

All Superinterfaces:
IEmxEvent
All Known Subinterfaces:
IEmxNwAcceptReadyEvent, IEmxNwConnectReadyEvent, IEmxNwReadReadyEvent, IEmxNwWriteReadyEvent

public interface IEmxNwEvent
extends IEmxEvent

Root interface for all dispatcher network events.

This interface specifies a dispatcher network event. A network event is one of the following types:
- IEmxEvent.EventType.NW_ACCEPT_READY
- IEmxEvent.EventType.NW_CONNECT_READY
- IEmxEvent.EventType.NW_READ_READY
- IEmxEvent.EventType.NW_WRITE_READY

Threading:
EMX events are not safe for concurrent access by multiple threads.

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.neeve.emx.IEmxEvent
IEmxEvent.EventType
 
Field Summary
 
Fields inherited from interface com.neeve.emx.IEmxEvent
MAXIMUM_EVENT_PRIORITY, MINIMUM_EVENT_PRIORITY, NORMAL_EVENT_PRIORITY
 
Method Summary
 boolean getCritical()
          Get whether the network event is a critical event.
 void setCritical(boolean val)
          Set whether the network event is a critical event.
 
Methods inherited from interface com.neeve.emx.IEmxEvent
getAttachment, getDispatcher, getHandler, getLatency, getPriority, getType, setAttachment, setHandler, setPriority
 

Method Detail

setCritical

void setCritical(boolean val)
Set whether the network event is a critical event.

See Also:
getCritical()
Threading:
This method is not safe for concurrent access by multiple threads.

getCritical

boolean getCritical()
Get whether the network event is a critical event.

Returns:
Returns the event criticality.
Throws:
IllegalStateException - Thrown in case the event is currently being scheduled by a dispatcher. It is illegal to change the criticality of an event while it is owned by the dispatcher.

This method returns whether the network event is marked as a critical event. Critical events are treated specially during scheduling and dispatch. Normally, in case there is a user event ready for dispatch, the event is dispatched and control returned to the caller. The presence of a scheduled critical event forces the dispatcher to perform a select even if a user event is ready for dispatch.

Threading:
This method is safe for concurrent access by multiple threads.


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.