Class BlockTradeExpiredResponder

java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.FXResponder<BlockTrade>
com.caplin.motif.fx.trading.block.responder.BlockTradeExpiredResponder
Direct Known Subclasses:
BlockTradeExecutedResponder, BlockTradeQueuedResponder

public class BlockTradeExpiredResponder extends FXResponder<BlockTrade>

Base class for Responders that send the Expired message

  • Constructor Details

    • BlockTradeExpiredResponder

      public BlockTradeExpiredResponder(BlockTrade trade)
      Constructs a Responder that can respond from states the send the Expired Message
      Parameters:
      trade - The trade this responder will send messages for
  • Method Details

    • sendExpired

      public void sendExpired(BlockTradeExpiredEvent event) throws com.caplin.trading.TradeException
      Sends a message to notify the client that that the trade has expired.
      Parameters:
      event - The event denoting that the trade has expired
      Throws:
      com.caplin.trading.TradeException - if there was a problem sending the event