Class ESPTradeProperties.Builder

java.lang.Object
com.caplin.motif.fx.ret.fxtrading.customfield.esp.ESPTradeProperties.Builder
Enclosing class:
ESPTradeProperties

public static final class ESPTradeProperties.Builder extends Object
A helper class used to construct an ESPTradeProperties object. The builder should be instantiated by calling ESPTradeProperties.builder().
  • Method Details

    • withUnit

      public ESPTradeProperties.Builder withUnit(String unit)
      Add the unit.
      Parameters:
      unit -
      Returns:
      this
    • withClientTimePriceClicked

      public ESPTradeProperties.Builder withClientTimePriceClicked(String clientTimePriceClicked)
      Add the time that the client clicked on the price.
      Parameters:
      clientTimePriceClicked -
      Returns:
      this
    • withClientTimePriceOnScreen

      public ESPTradeProperties.Builder withClientTimePriceOnScreen(String clientTimePriceOnScreen)
      Add the time that the price was displayed on the client's screen.
      Parameters:
      clientTimePriceOnScreen -
      Returns:
      this
    • withServerTimePriceReceived

      public ESPTradeProperties.Builder withServerTimePriceReceived(String serverTimePriceReceived)
      Add the time on the server that the price was received.
      Parameters:
      serverTimePriceReceived -
      Returns:
      this
    • withServerTimeTradeReceived

      public ESPTradeProperties.Builder withServerTimeTradeReceived(String serverTimeTradeReceived)
      Add the time on the server that the trade was received.
      Parameters:
      serverTimeTradeReceived -
      Returns:
      this
    • withServerTimeConnectionReceived

      public ESPTradeProperties.Builder withServerTimeConnectionReceived(String serverTimeConnectionReceived)
      Add the time on the server that the connection was received.
      Parameters:
      serverTimeConnectionReceived -
      Returns:
      this
    • withServerTimeWaitingForConnection

      public ESPTradeProperties.Builder withServerTimeWaitingForConnection(String serverTimeWaitingForConnection)
      Add the duration the server has spent waiting for a connection.
      Parameters:
      serverTimeWaitingForConnection -
      Returns:
      this
    • withServerTimeSettingUpTrade

      public ESPTradeProperties.Builder withServerTimeSettingUpTrade(String serverTimeSettingUpTrade)
      Add the duration the server took to set up the trade.
      Parameters:
      serverTimeSettingUpTrade -
      Returns:
      this
    • withServerTimeTradeSubmitted

      public ESPTradeProperties.Builder withServerTimeTradeSubmitted(String serverTimeTradeSubmitted)
      Add the time on the server that the trade was submitted.
      Parameters:
      serverTimeTradeSubmitted -
      Returns:
      this
    • build

      public ESPTradeProperties build()
      Returns the ESPTradeProperties object with the properties added by the builder.
      Returns:
      The ESPTradeProperties object.