public class UserStrategyDetailsListener extends java.lang.Object implements StrategyDetailsListener
StrategyDetailsListener.onError(java.lang.String)
event
if it is not and swallows all future updates.Constructor and Description |
---|
UserStrategyDetailsListener(StrategyDetailsListener wrappedListener,
OrderPermission permission) |
Modifier and Type | Method and Description |
---|---|
void |
onError(java.lang.String error)
Signals an error on the subscription.
|
void |
onUpdate(com.caplin.motif.fx.trading.orders.details.Strategy strategy,
com.caplin.ret.trapi.fx.order.strategy.StrategyTree strategyTree)
Sends a strategy update to the subscription.
|
public UserStrategyDetailsListener(StrategyDetailsListener wrappedListener, OrderPermission permission)
public void onError(java.lang.String error)
StrategyDetailsListener
Signals an error on the subscription.
Errors do NOT signal that the subscription has ended. Subscribers should still remove their listeners.onError
in interface StrategyDetailsListener
error
- The reason for the error.public void onUpdate(com.caplin.motif.fx.trading.orders.details.Strategy strategy, com.caplin.ret.trapi.fx.order.strategy.StrategyTree strategyTree)
StrategyDetailsListener
onUpdate
in interface StrategyDetailsListener
strategy
- The updated Strategy
.strategyTree
- The latest StrategyTree
that was used to produce the Strategy
.Copyright © 2016 Caplin Systems.