public static class TcpConnection.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TcpConnection.Builder |
address(String address)
The connection IP address.
|
TcpConnection |
build() |
TcpConnection.Builder |
connectDuration(Double connectDuration)
Total connect duration, calculated using
connectEnd minus connectStart . |
TcpConnection.Builder |
copy(TcpConnection model) |
TcpConnection.Builder |
port(Integer port)
The port.
|
TcpConnection.Builder |
secureConnectDuration(Double secureConnectDuration)
The duration to secure the connection.
|
public TcpConnection.Builder address(String address)
The connection IP address.
address
- the value to setpublic TcpConnection.Builder port(Integer port)
The port.
port
- the value to setpublic TcpConnection.Builder connectDuration(Double connectDuration)
Total connect duration, calculated using connectEnd
minus connectStart
.
connectDuration
- the value to setpublic TcpConnection.Builder secureConnectDuration(Double secureConnectDuration)
The duration to secure the connection. This value will be zero for insecure connections.
Calculated using connectEnd
minus secureConnectionStart
.
secureConnectDuration
- the value to setpublic TcpConnection build()
public TcpConnection.Builder copy(TcpConnection model)
Copyright © 2016–2024. All rights reserved.