com.apama.position
Event PSFactory
This is the main factory event that allows applications to create an instance of the Position Service Interface (com.apama.position.PSInterface).
The PSInterface object can then be used to subscribe/unsubscribe to the Position Service Trackers, and to query the current state of the Position Service.
A set of Position Trackers have been provided with the CMF in the Position Trackers bundle. These Position Trackers monitor the quantity and cash position of orders that are placed in the application. These Position Tracker implementations must be created in the context that is receiving the orders in the application.
Alternatively, applications with different requirements may choose to implement a custom Position Tracker using the Position Tracker Interface. This will allow a custom implementation to be used within the CMF Position Service architecture, which provides a framework for subscription management, publication of position information and persistence/recovery.
-
See Also:
-
com.apama.position.PSInterface - The user-level interface that can be used to subscribe/unsubscribe and query the Position Service
-
com.apama.position.tracker.PSTrackerFactory - The user-level interface that is used to create an instance of the Position Tracker Interface
-
com.apama.position.tracker.OpenPositionTrackerFactory - The factory to create a Position Tracker to track completed orders
-
com.apama.position.tracker.PendingPositionTrackerFactory - The factory to create a Position Tracker to track orders pending (IE not completed) in the market
-
com.apama.position.tracker.ReservedPositionTrackerFactory - The factory to create a Position Tracker to track reservation orders pending (IE not completed) in the market
create
void create(context mainContext, com.apama.position.PositionConfigParams config, action<com.apama.position.PSInterface, boolean, string> cbCreated)
This action creates a new instance of the Position Service Interface (com.apama.position.PSInterface).
This interface can be used to subscribe/unsubscribe to the Position Service Trackers, and to query the current state of the Position Service.
-
Parameters:
-
mainContext - The main context
-
config - A PositionConfigParams object containing any Subscription Manager wide configuration
-
cbCreated - The user-defined callback action that will be called when the Position Service Interface has been created
-
See Also:
-
com.apama.position.PSInterface - The user-level interface that can be used to subscribe/unsubscribe and query the Position Service