See: Description
Interface | Description |
---|---|
EventDestination<E> |
An EventDestination receives an event from objects operating
on a different thread.
|
EventDispatcher<E> |
An EventDispatcher processes events on another thread.
|
EventProcessor<E> |
An ActiveEventProcessor processes events and
receives notifications that there are events to be processed.
|
EventQueue<E> |
An EventQueue receives events, queues them,
and then processes them on another thread.
|
Class | Description |
---|---|
JAEventQueue<E> |
An JAEventQueue receives messages, queues them,
and then processes them on another thread.
|
The events package supports the dispatching of one-way messages (events).
A simple echo test takes 123 nanoseconds to send a message when running with a single thread and 252 nanoseconds when running with multiple threads.
A dual echo test takes 113 nanoseconds to send a message when running with a single thread, 210 nanoseconds when running with 2 threads, 223 nanoseconds when running with 4 threads and 225 nanoseconds when running with 8 threads.
Tests were done on an Intel Core i5 CPU M 540 @ 2.53GHz, which has 4 hardware threads. The times reported were best run in 5.
Copyright © 2012. All Rights Reserved.