public interface EventDispatcher
Engine
s and EventListener
s
both, inside and outside of the current JRE.Modifier and Type | Method and Description |
---|---|
void |
broadcast(java.lang.Object event,
java.util.Set<EventRecipient> recipients)
Broadcasts a generic event to recipients.
|
void |
broadcastInSameThread(java.lang.Object event,
java.util.Set<EventRecipient> recipients)
Guarantees broadcasting to listeners at the caller's thread
|
boolean |
isMarketDataSubscribed(long securityId,
java.lang.String strategyName)
Tests if there is a market data registration for the given strategy and security.
|
boolean |
isMarketDataSubscribedByAnyStrategy(long securityId) |
void |
resendPastEvent(java.lang.String strategyName,
java.lang.Object event)
Re-sends past event related to the given strategy to internal recipients such as UI
primarily to restore strategy state upon startup.
|
void |
sendEvent(java.lang.String strategyName,
java.lang.Object event)
Sends event related to the given strategy to local or remote recipients.
|
void |
sendMarketDataEvent(MarketDataEventVO marketDataEvent)
Sends market data event all subscribed strategies running either locally or remotely.
|
void |
shutdown() |
void |
subscribeMarketData(java.lang.String strategyName,
long securityId)
Registers market data subscription for the given strategy and security
|
void |
unsubscribeMarketData(java.lang.String strategyName,
long securityId)
Un-registers market data subscription for the given strategy and security
|
void sendEvent(java.lang.String strategyName, java.lang.Object event)
void resendPastEvent(java.lang.String strategyName, java.lang.Object event)
boolean isMarketDataSubscribed(long securityId, java.lang.String strategyName)
void subscribeMarketData(java.lang.String strategyName, long securityId)
void unsubscribeMarketData(java.lang.String strategyName, long securityId)
boolean isMarketDataSubscribedByAnyStrategy(long securityId)
void sendMarketDataEvent(MarketDataEventVO marketDataEvent)
void broadcast(java.lang.Object event, java.util.Set<EventRecipient> recipients)
void broadcastInSameThread(java.lang.Object event, java.util.Set<EventRecipient> recipients)
void shutdown()