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 java.lang.Object
A helper class used to construct anESPTradeProperties
object. The builder should be instantiated by callingESPTradeProperties.builder()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ESPTradeProperties
build()
Returns theESPTradeProperties
object with the properties added by the builder.ESPTradeProperties.Builder
withClientTimePriceClicked(java.lang.String clientTimePriceClicked)
Add the time that the client clicked on the price.ESPTradeProperties.Builder
withClientTimePriceOnScreen(java.lang.String clientTimePriceOnScreen)
Add the time that the price was displayed on the client's screen.ESPTradeProperties.Builder
withServerTimeConnectionReceived(java.lang.String serverTimeConnectionReceived)
Add the time on the server that the connection was received.ESPTradeProperties.Builder
withServerTimePriceReceived(java.lang.String serverTimePriceReceived)
Add the time on the server that the price was received.ESPTradeProperties.Builder
withServerTimeSettingUpTrade(java.lang.String serverTimeSettingUpTrade)
Add the duration the server took to set up the trade.ESPTradeProperties.Builder
withServerTimeTradeReceived(java.lang.String serverTimeTradeReceived)
Add the time on the server that the trade was received.ESPTradeProperties.Builder
withServerTimeTradeSubmitted(java.lang.String serverTimeTradeSubmitted)
Add the time on the server that the trade was submitted.ESPTradeProperties.Builder
withServerTimeWaitingForConnection(java.lang.String serverTimeWaitingForConnection)
Add the duration the server has spent waiting for a connection.ESPTradeProperties.Builder
withUnit(java.lang.String unit)
Add the unit.
-
-
-
Method Detail
-
withUnit
public ESPTradeProperties.Builder withUnit(java.lang.String unit)
Add the unit.- Parameters:
unit
-- Returns:
- this
-
withClientTimePriceClicked
public ESPTradeProperties.Builder withClientTimePriceClicked(java.lang.String clientTimePriceClicked)
Add the time that the client clicked on the price.- Parameters:
clientTimePriceClicked
-- Returns:
- this
-
withClientTimePriceOnScreen
public ESPTradeProperties.Builder withClientTimePriceOnScreen(java.lang.String clientTimePriceOnScreen)
Add the time that the price was displayed on the client's screen.- Parameters:
clientTimePriceOnScreen
-- Returns:
- this
-
withServerTimePriceReceived
public ESPTradeProperties.Builder withServerTimePriceReceived(java.lang.String serverTimePriceReceived)
Add the time on the server that the price was received.- Parameters:
serverTimePriceReceived
-- Returns:
- this
-
withServerTimeTradeReceived
public ESPTradeProperties.Builder withServerTimeTradeReceived(java.lang.String serverTimeTradeReceived)
Add the time on the server that the trade was received.- Parameters:
serverTimeTradeReceived
-- Returns:
- this
-
withServerTimeConnectionReceived
public ESPTradeProperties.Builder withServerTimeConnectionReceived(java.lang.String serverTimeConnectionReceived)
Add the time on the server that the connection was received.- Parameters:
serverTimeConnectionReceived
-- Returns:
- this
-
withServerTimeWaitingForConnection
public ESPTradeProperties.Builder withServerTimeWaitingForConnection(java.lang.String serverTimeWaitingForConnection)
Add the duration the server has spent waiting for a connection.- Parameters:
serverTimeWaitingForConnection
-- Returns:
- this
-
withServerTimeSettingUpTrade
public ESPTradeProperties.Builder withServerTimeSettingUpTrade(java.lang.String serverTimeSettingUpTrade)
Add the duration the server took to set up the trade.- Parameters:
serverTimeSettingUpTrade
-- Returns:
- this
-
withServerTimeTradeSubmitted
public ESPTradeProperties.Builder withServerTimeTradeSubmitted(java.lang.String serverTimeTradeSubmitted)
Add the time on the server that the trade was submitted.- Parameters:
serverTimeTradeSubmitted
-- Returns:
- this
-
build
public ESPTradeProperties build()
Returns theESPTradeProperties
object with the properties added by the builder.- Returns:
- The ESPTradeProperties object.
-
-