Class PendingAllocationResponder
- java.lang.Object
-
- com.caplin.motif.fx.trading.Responder<T>
-
- com.caplin.motif.fx.trading.FXResponder<PostTradeAllocationList>
-
- com.caplin.motif.fx.trading.allocation.responder.PendingAllocationResponder
-
public class PendingAllocationResponder extends FXResponder<PostTradeAllocationList>
A Responder to respond from within the PendingAllocation state.
-
-
Constructor Summary
Constructors Constructor Description PendingAllocationResponder(PostTradeAllocationList trade)
Constructs a Responder that can send messages from the PendingAllocation state
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendAllocationConfirmation(AllocationConfirmationEvent event)
Sends an allocation confirmation to denote that the allocation was successful.-
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
-
-
-
Constructor Detail
-
PendingAllocationResponder
public PendingAllocationResponder(PostTradeAllocationList trade)
Constructs a Responder that can send messages from the PendingAllocation statePlease use:
PostTradeAllocationList.getPendingAllocationResponder()
to retrieve an instance- Parameters:
trade
- The object representing the post allocation trade which the responder can send messages for.
-
-
Method Detail
-
sendAllocationConfirmation
public void sendAllocationConfirmation(AllocationConfirmationEvent event) throws com.caplin.trading.TradeException
Sends an allocation confirmation to denote that the allocation was successful.- Parameters:
event
- The event to send.- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-
-