Class QueuedResponder
- java.lang.Object
-
- com.caplin.motif.fx.trading.Responder<T>
-
- com.caplin.motif.fx.trading.FXResponder<PostTradeAllocationList>
-
- com.caplin.motif.fx.trading.allocation.responder.QueuedResponder
-
public class QueuedResponder extends FXResponder<PostTradeAllocationList>
A Responder to respond from within the QueuedState.
Note that generally an allocation will transition directly through a Queued state without any message from the trading system. If the backend supports Dealer Intervention for Allocations, then this state represents waiting for a dealer to pickup this deal. This allows the client to attempt to cancel the deal if he does not wish to wait for a dealer.
-
-
Constructor Summary
Constructors Constructor Description QueuedResponder(PostTradeAllocationList trade)
Constructs a Responder that can send messages from the Queued state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendPickUp(AllocationPickUpEvent event)
Sends a message to denote that the deal has been picked up by the trading system or a manual dealer.-
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
-
-
-
Constructor Detail
-
QueuedResponder
public QueuedResponder(PostTradeAllocationList trade)
Constructs a Responder that can send messages from the Queued state.Please use:
PostTradeAllocationList.getQueuedResponder()
to retrieve an instance- Parameters:
trade
- The object representing the post allocation trade which the responder can send messages for.
-
-
Method Detail
-
sendPickUp
public void sendPickUp(AllocationPickUpEvent event) throws com.caplin.trading.TradeException
Sends a message to denote that the deal has been picked up by the trading system or a manual dealer.- Parameters:
event
- The event to send.- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-
-