Class StrategyDetailsCallbackImpl
- java.lang.Object
-
- com.caplin.motif.fx.trading.orders.details.StrategyDetailsCallbackImpl
-
- All Implemented Interfaces:
StrategyDetailsCallback
@Deprecated public class StrategyDetailsCallbackImpl extends java.lang.Object implements StrategyDetailsCallback
Deprecated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
onError(java.lang.String error)
Deprecated.Call this method if you cannot or do not wish to provide details of the strategy to the client.void
onImage(Strategy strategy)
Deprecated.Call this method when you have retrieved the details of the strategy from your trading system and are ready to send them back to the client.void
onUpdate(Strategy strategy)
Deprecated.Call this method when you have retrieved the details of the strategy from your trading system and are ready to send them back to the client.
-
-
-
Method Detail
-
onImage
public void onImage(Strategy strategy)
Deprecated.Description copied from interface:StrategyDetailsCallback
Call this method when you have retrieved the details of the strategy from your trading system and are ready to send them back to the client. Instances of
Strategy
can be built using theStrategyBuilder
.You can call this method multiple times if the state of the order strategy changes (for example it receives a fill or is canceled) and you want to update the client with the new state.
Sending an image will wipe all previously sent fields and send this strategy's fields alone. To send a combination of this strategy's fields overlaid on top of previous updates, use
StrategyDetailsCallback.onUpdate(com.caplin.motif.fx.trading.orders.details.Strategy)
- Specified by:
onImage
in interfaceStrategyDetailsCallback
- Parameters:
strategy
- The Strategy to send to the client.- See Also:
StrategyBuilder
-
onUpdate
public void onUpdate(Strategy strategy)
Deprecated.Description copied from interface:StrategyDetailsCallback
Call this method when you have retrieved the details of the strategy from your trading system and are ready to send them back to the client. Instances of
Strategy
can be built using theStrategyBuilder
.You can call this method multiple times if the state of the order strategy changes (for example it receives a fill or is canceled) and you want to update the client with the new state.
Sending an update will send a combination of this strategy's fields overlaid on top of previous updates. To wipe all previously sent fields and send this strategy's fields alone use
StrategyDetailsCallback.onImage(com.caplin.motif.fx.trading.orders.details.Strategy)
- Specified by:
onUpdate
in interfaceStrategyDetailsCallback
- Parameters:
strategy
- The Strategy to send to the client.- See Also:
StrategyBuilder
-
onError
public void onError(java.lang.String error)
Deprecated.Description copied from interface:StrategyDetailsCallback
Call this method if you cannot or do not wish to provide details of the strategy to the client. This could happen if no strategy with the requested ID can be found, or if the requesting user is not permitted to view the details of the strategy.
Calling this method puts the StrategyDetailsCallback in a terminal state. An exception will be thrown if you call
StrategyDetailsCallback.onUpdate(Strategy)
after calling this method.- Specified by:
onError
in interfaceStrategyDetailsCallback
- Parameters:
error
- An error code which will be sent to the client. The client application can convert this error code into an internationalised message to present to the user.
-
-