public interface MARSListener
Modifier and Type | Method and Description |
---|---|
void |
marsChanged(MARSAgent agent)
|
void marsChanged(MARSAgent agent)
MARSAgent
has new MARSEvent
events.
NOTE: the listener is invoked in a thread that has put new events into MARS
instance.
Therefore, proper thread-safety measures must be taken by the listener to avoid data corruption.
Also, notification processing shall be reasonably fast and shall not call external I/O operations
that may block invoking thread for a long time.
NOTE: because of parallel multi-thread processing it may happen that certain notifications are delayed and performed after all events are already retrieved and processed. That is, despite contract, it may happen that there are no new events in the specified agent when notification is actually performed.
Copyright © 2015 Devexperts. All Rights Reserved.