public class PingRequestDTO extends Object implements RpcRequest
TAG_CLASS_NAME, TAG_DESCRIPTION, TAG_IP_ADDRESS, TAG_NODE_ID, TAG_NODE_LABEL
Constructor and Description |
---|
PingRequestDTO() |
Modifier and Type | Method and Description |
---|---|
void |
addTracingInfo(String key,
String value) |
boolean |
equals(Object o) |
InetAddress |
getInetAddress() |
String |
getLocation()
Used to route the request to the appropriate location.
|
int |
getPacketSize() |
int |
getRetries() |
io.opentracing.Span |
getSpan() |
String |
getSystemId()
Used to route the request to a particular system at the given location.
|
long |
getTimeout() |
Long |
getTimeToLiveMs()
When using JMS, the request will fail if no response was received in this
many milliseconds.
|
Map<String,String> |
getTracingInfo()
RPC clients expose tracing info as tags there by giving more context to each RPC trace.
|
int |
hashCode() |
void |
setInetAddress(InetAddress inetAddress) |
void |
setLocation(String location) |
void |
setPacketSize(int packetSize) |
void |
setRetries(int retries) |
void |
setSystemId(String systemId) |
void |
setTimeout(long timeoutInMs) |
PingRequest |
toPingRequest() |
public String getLocation()
RpcRequest
getLocation
in interface RpcRequest
public void setSystemId(String systemId)
public String getSystemId()
RpcRequest
getSystemId
in interface RpcRequest
public Long getTimeToLiveMs()
RpcRequest
getTimeToLiveMs
in interface RpcRequest
public void setLocation(String location)
public void setPacketSize(int packetSize)
public void setRetries(int retries)
public void setTimeout(long timeoutInMs)
public void setInetAddress(InetAddress inetAddress)
public InetAddress getInetAddress()
public int getRetries()
public long getTimeout()
public int getPacketSize()
public Map<String,String> getTracingInfo()
RpcRequest
getTracingInfo
in interface RpcRequest
public io.opentracing.Span getSpan()
getSpan
in interface RpcRequest
public PingRequest toPingRequest()
Copyright © 2021. All rights reserved.