Class ESPTradeProperties.Builder
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.customfield.esp.ESPTradeProperties.Builder
- Enclosing class:
- ESPTradeProperties
A helper class used to construct an
ESPTradeProperties
object. The builder should be instantiated by calling
ESPTradeProperties.builder()
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns theESPTradeProperties
object with the properties added by the builder.withClientTimePriceClicked
(String clientTimePriceClicked) Add the time that the client clicked on the price.withClientTimePriceOnScreen
(String clientTimePriceOnScreen) Add the time that the price was displayed on the client's screen.withServerTimeConnectionReceived
(String serverTimeConnectionReceived) Add the time on the server that the connection was received.withServerTimePriceReceived
(String serverTimePriceReceived) Add the time on the server that the price was received.withServerTimeSettingUpTrade
(String serverTimeSettingUpTrade) Add the duration the server took to set up the trade.withServerTimeTradeReceived
(String serverTimeTradeReceived) Add the time on the server that the trade was received.withServerTimeTradeSubmitted
(String serverTimeTradeSubmitted) Add the time on the server that the trade was submitted.withServerTimeWaitingForConnection
(String serverTimeWaitingForConnection) Add the duration the server has spent waiting for a connection.Add the unit.
-
Method Details
-
withUnit
Add the unit.- Parameters:
unit
-- Returns:
- this
-
withClientTimePriceClicked
Add the time that the client clicked on the price.- Parameters:
clientTimePriceClicked
-- Returns:
- this
-
withClientTimePriceOnScreen
Add the time that the price was displayed on the client's screen.- Parameters:
clientTimePriceOnScreen
-- Returns:
- this
-
withServerTimePriceReceived
Add the time on the server that the price was received.- Parameters:
serverTimePriceReceived
-- Returns:
- this
-
withServerTimeTradeReceived
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
Add the duration the server took to set up the trade.- Parameters:
serverTimeSettingUpTrade
-- Returns:
- this
-
withServerTimeTradeSubmitted
Add the time on the server that the trade was submitted.- Parameters:
serverTimeTradeSubmitted
-- Returns:
- this
-
build
Returns theESPTradeProperties
object with the properties added by the builder.- Returns:
- The ESPTradeProperties object.
-