java.lang.Object javax.realtime.AsyncEventHandler javax.realtime.BoundAsyncEventHandler
A bound asynchronous event handler is an instance of
is permanently bound to a dedicated real-time thread. Bound asynchronous event
handlers are for use in situations where the added timeliness is worth the
overhead of dedicating an individual real-time thread to the handler. Individual server real-time
threads can only be dedicated to a single bound event handler.
Create an instance of
Create an instance of
|Methods inherited from class javax.realtime.AsyncEventHandler|
|Methods inherited from class java.lang.Object|
BoundAsyncEventHandlerusing default values. This constructor is equivalent to
BoundAsyncEventHandler(null, null, null, null, null, false, null)
public BoundAsyncEventHandler(SchedulingParameters scheduling, ReleaseParameters release, MemoryParameters memory, MemoryArea area, ProcessingGroupParameters group, boolean nonheap, java.lang.Runnable logic)
BoundAsyncEventHandlerwith the specified parameters.
SchedulingParametersobject which will be associated with the constructed instance. If null, and the creator is a Java thread, a
SchedulingParametersobject is created which has the default
SchedulingParametersfor the scheduler associated with the current thread. If null, and the creator is a schedulable object, the
SchedulingParametersare inherited from the current schedulable object (a new
SchedulingParametersobject is cloned).
ReleaseParametersobject which will be associated with the constructed instance. If null,
thiswill have default
ReleaseParametersfor the BAEH's scheduler.
MemoryParametersobject which will be associated with the constructed instance. If null,
thiswill have no
this. If null, the memory area will be that of the current thread/schedulable object.
ProcessingGroupParametersobject which will be associated with the constructed instance. If null,
thiswill not be associated with any processing group.
run()method is executed by
AsyncEventHandler.handleAsyncEvent(). If null, the logic will default to the BAEH's
nonheap- A flag meaning, when true, that this will have characteristics identical to a
NoHeapRealtimeThread. A false value means this will have characteristics identical to a
RealtimeThread. If true and the current thread/schedulable object is not executing within a
ImmortalMemoryscope then an
java.lang.IllegalArgumentException- Thrown if the initial memory area is in heap memory, and the
noheapparameter is true.