See: Description
Interface | Description |
---|---|
BufferedEventsDestination<E> |
A BufferedEventsDestination receives lists of events from objects operating
on a different thread.
|
BufferedEventsQueue<E> |
A BufferedEventsQueue receives buffered events, queues them,
and then processes them on another thread.
|
Class | Description |
---|---|
JABufferedEventsQueue<E> |
A BufferedEventsQueue receives buffered events, queues them,
and then processes them on another thread.
|
The bufferedEvents package supports the dispatching of one-way messages (events), but it buffers outgoing events and sends them only when there are no other incoming events to process, which results in a significant improvement in throughput when under load.
An echo test running multiple pairs with 1000 messages per burst processed 85 million messages per second--12 nanoseconds per message. But when messages are sent one at a time, only 4468654 messages are processed per second--224 nanoseconds per message. Sending messages in bursts, which simulates a system under load, is 1,767% faster.
Copyright © 2012. All Rights Reserved.