com.apama.md.bridge
Event MDBridgeExtensionFactory


The Market Data Bridge Extension Factory allows the user to create a MDBridgeExtensionInterface object that defines a set of custom extension point actions to the Market Data Bridge that can be overridden by the user application.
Since:
CMF 2.1.1
See Also:
com.apama.md.bridge.MDBridgeExtensionInterface - The Interface object that the factory creates

Action Summary
 com.apama.md.bridge.MDBridgeExtensionInterfacecreateInterface()

This action is called by the User to create a Market Data Bridge Extension Interface that can be used to override the default behaviour of the Market Data Bridge.
 booleangetDefaultSubscribeDepth(com.apama.marketdata.SubscribeDepth subDepth)

This is the default action that is called by the Bridge just before it sends a SubscribeDepth event to the underlying DataSource that the Bridge has been configured for.
 booleangetDefaultSubscribeOthers(string serviceId, string marketId, com.apama.md.adapter.ConnectDatastream cds)

This is the default action that is called by the Bridge just before it sends a success event to the underlying DataSource that the Bridge has been configured for.
 booleangetDefaultSubscribeTick(com.apama.marketdata.SubscribeTick subTick)

This is the default action that is called by the Bridge just before it sends a SubscribeTick event to the underlying DataSource that the Bridge has been configured for.
 booleangetDefaultTransformDepth(com.apama.marketdata.Depth depth)

This is the default action that is called by the Bridge after it receives a Depth event, and before it processes it for publication.
 booleangetDefaultTransformTick(com.apama.marketdata.Tick tick)

This is the default action that is called by the Bridge after it receives a Tick event, and before it processes it for publication.
 booleangetDefaultUnsubscribeDepth(com.apama.marketdata.UnsubscribeDepth unsubDepth)

This is the default action that is called by the Bridge just before it sends a UnsubscribeDepth event to the underlying DataSource that the Bridge has been configured for.
 booleangetDefaultUnsubscribeOthers(string serviceId, string marketId, com.apama.md.adapter.DisconnectDatastream dcds)

This is the default action that is called by the Bridge just before sending a success event to the underlying DataSource that the Bridge has been configured for.
 booleangetDefaultUnsubscribeTick(com.apama.marketdata.UnsubscribeTick unsubTick)

This is the default action that is called by the Bridge just before it sends a UnsubscribeTick event to the underlying DataSource that the Bridge has been configured for.
 
Action Detail

createInterface

com.apama.md.bridge.MDBridgeExtensionInterface createInterface()
This action is called by the User to create a Market Data Bridge Extension Interface that can be used to override the default behaviour of the Market Data Bridge.
Returns:
An interface to a new MDBridgeExtensionInterface object
See Also:
com.apama.md.bridge.MDBridgeExtensionInterface - The Interface object that this function creates

getDefaultSubscribeDepth

boolean getDefaultSubscribeDepth(com.apama.marketdata.SubscribeDepth subDepth)
This is the default action that is called by the Bridge just before it sends a SubscribeDepth event to the underlying DataSource that the Bridge has been configured for.
Parameters:
subDepth - The SubscribeDepth event that will be routed by the Bridge when returning from this action
Returns:
true if the event should be processed further, false otherwise

getDefaultSubscribeOthers

boolean getDefaultSubscribeOthers(string serviceId, string marketId, com.apama.md.adapter.ConnectDatastream cds)
This is the default action that is called by the Bridge just before it sends a success event to the underlying DataSource that the Bridge has been configured for.
Parameters:
serviceId - The service ID of the legacy adapter connection to use
marketId - The market ID of the legacy adapter connection to use
cds - The Connect Datastream event having all the details of the connection request
Returns:
true if the event should be processed further, false otherwise

getDefaultSubscribeTick

boolean getDefaultSubscribeTick(com.apama.marketdata.SubscribeTick subTick)
This is the default action that is called by the Bridge just before it sends a SubscribeTick event to the underlying DataSource that the Bridge has been configured for.
Parameters:
subTick - The SubscribeTick event that will be routed by the Bridge when returning from this action
Returns:
true if the event should be processed further, false otherwise

getDefaultTransformDepth

boolean getDefaultTransformDepth(com.apama.marketdata.Depth depth)
This is the default action that is called by the Bridge after it receives a Depth event, and before it processes it for publication.
Parameters:
depth - The Depth event that will be converted and published by the Bridge when returning from this action
Returns:
true if the event should be processed further, false otherwise

getDefaultTransformTick

boolean getDefaultTransformTick(com.apama.marketdata.Tick tick)
This is the default action that is called by the Bridge after it receives a Tick event, and before it processes it for publication.
Parameters:
tick - The Tick event that will be converted and published by the Bridge when returning from this action
Returns:
true if the event should be processed further, false otherwise

getDefaultUnsubscribeDepth

boolean getDefaultUnsubscribeDepth(com.apama.marketdata.UnsubscribeDepth unsubDepth)
This is the default action that is called by the Bridge just before it sends a UnsubscribeDepth event to the underlying DataSource that the Bridge has been configured for.
Parameters:
unsubDepth - The UnsubscribeDepth event that will be routed by the Bridge when returning from this action
Returns:
true if the event should be processed further, false otherwise

getDefaultUnsubscribeOthers

boolean getDefaultUnsubscribeOthers(string serviceId, string marketId, com.apama.md.adapter.DisconnectDatastream dcds)
This is the default action that is called by the Bridge just before sending a success event to the underlying DataSource that the Bridge has been configured for.
Parameters:
serviceId - The service ID of the legacy adapter connection to use
marketId - The market ID of the legacy adapter connection to use
dcds - The DisconnectDatastream event having all the details of the disconnection request
Returns:
true if the event should be processed further, false otherwise

getDefaultUnsubscribeTick

boolean getDefaultUnsubscribeTick(com.apama.marketdata.UnsubscribeTick unsubTick)
This is the default action that is called by the Bridge just before it sends a UnsubscribeTick event to the underlying DataSource that the Bridge has been configured for.
Parameters:
unsubTick - The UnsubscribeTick event that will be routed by the Bridge when returning from this action
Returns:
true if the event should be processed further, false otherwise