public class PingRequestBuilderImpl extends Object implements PingRequestBuilder
PingRequestBuilder.Callback| Modifier and Type | Field and Description |
|---|---|
protected RpcClient<PingRequestDTO,PingResponseDTO> |
client |
protected InetAddress |
inetAddress |
protected String |
location |
protected int |
packetSize |
protected int |
retries |
protected long |
timeout |
| Constructor and Description |
|---|
PingRequestBuilderImpl(RpcClient<PingRequestDTO,PingResponseDTO> client) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<PingSummary> |
execute() |
PingRequestBuilder |
withInetAddress(InetAddress inetAddress) |
PingRequestBuilder |
withLocation(String location) |
PingRequestBuilder |
withNumberOfRequests(int numberOfRequests) |
PingRequestBuilder |
withPacketSize(int packetSize) |
PingRequestBuilder |
withProgressCallback(PingRequestBuilder.Callback callback) |
PingRequestBuilder |
withRetries(int retries) |
PingRequestBuilder |
withTimeout(long timeout,
TimeUnit unit) |
protected final RpcClient<PingRequestDTO,PingResponseDTO> client
protected long timeout
protected int packetSize
protected int retries
protected InetAddress inetAddress
protected String location
public PingRequestBuilderImpl(RpcClient<PingRequestDTO,PingResponseDTO> client)
public PingRequestBuilder withTimeout(long timeout, TimeUnit unit)
withTimeout in interface PingRequestBuilderpublic PingRequestBuilder withPacketSize(int packetSize)
withPacketSize in interface PingRequestBuilderpublic PingRequestBuilder withRetries(int retries)
withRetries in interface PingRequestBuilderpublic PingRequestBuilder withInetAddress(InetAddress inetAddress)
withInetAddress in interface PingRequestBuilderpublic PingRequestBuilder withLocation(String location)
withLocation in interface PingRequestBuilderpublic PingRequestBuilder withNumberOfRequests(int numberOfRequests)
withNumberOfRequests in interface PingRequestBuilderpublic PingRequestBuilder withProgressCallback(PingRequestBuilder.Callback callback)
withProgressCallback in interface PingRequestBuilderpublic CompletableFuture<PingSummary> execute()
execute in interface PingRequestBuilderCopyright © 2020. All rights reserved.