public class StrategyLockManager
extends java.lang.Object
Constructor and Description |
---|
StrategyLockManager(com.caplin.ret.trapi.fx.order.OrderMonitorService orderManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
acquireLock(com.caplin.ret.trapi.fx.FXOrder order)
Attempts to acquire the strategy lock for the specified order.
|
boolean |
acquireLock(java.lang.String strategyId)
Attempts to acquire the strategy lock for the specified strategy ID.
|
boolean |
acquireLockForOrder(java.lang.String orderId)
Attempts to acquire the strategy lock for the specified order ID.
|
com.caplin.ret.trapi.fx.FXOrder |
getOrder(java.lang.String orderId) |
boolean |
releaseLock(com.caplin.ret.trapi.fx.FXOrder order)
Attempts to release the strategy lock for the specified order.
|
boolean |
releaseLock(java.lang.String strategyId)
Attempts to release the strategy lock for the specified strategy ID.
|
boolean |
releaseLockForOrder(java.lang.String orderId)
Attempts to release the strategy lock for the specified order ID.
|
public StrategyLockManager(com.caplin.ret.trapi.fx.order.OrderMonitorService orderManager)
public boolean acquireLockForOrder(java.lang.String orderId)
orderId
- The order ID.public com.caplin.ret.trapi.fx.FXOrder getOrder(java.lang.String orderId)
public boolean acquireLock(java.lang.String strategyId)
strategyId
- The strategy ID.public boolean acquireLock(com.caplin.ret.trapi.fx.FXOrder order)
order
- The order.public boolean releaseLockForOrder(java.lang.String orderId)
orderId
- The order ID.public boolean releaseLock(com.caplin.ret.trapi.fx.FXOrder order)
order
- The order.public boolean releaseLock(java.lang.String strategyId)
strategyId
- The strategy ID.Copyright © 2016 Caplin Systems.