public class EchoRequest extends Object implements RpcRequest
TAG_CLASS_NAME, TAG_DESCRIPTION, TAG_IP_ADDRESS, TAG_NODE_ID, TAG_NODE_LABEL
Constructor and Description |
---|
EchoRequest() |
EchoRequest(String message) |
Modifier and Type | Method and Description |
---|---|
void |
addTracingInfo(String key,
String value) |
boolean |
equals(Object obj) |
String |
getBody() |
Long |
getDelay() |
Long |
getId() |
String |
getLocation()
Used to route the request to the appropriate location.
|
String |
getMessage() |
String |
getSystemId()
Used to route the request to a particular system at the given location.
|
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 |
setBody(String body)
Set body when there is large message typically >500KB
|
void |
setDelay(Long delay) |
void |
setId(Long id) |
void |
setLocation(String location) |
void |
setMessage(String message) |
void |
setSystemId(String systemId) |
void |
setTimeToLiveMs(Long timeToLiveMs) |
boolean |
shouldThrow() |
void |
shouldThrow(boolean shouldThrow) |
String |
toString() |
public EchoRequest()
public EchoRequest(String message)
public void setId(Long id)
public Long getId()
public void setMessage(String message)
public String getMessage()
public String getBody()
public void setBody(String body)
body
- set bodypublic void setLocation(String location)
public String getLocation()
RpcRequest
getLocation
in interface RpcRequest
public void setSystemId(String systemId)
public String getSystemId()
RpcRequest
getSystemId
in interface RpcRequest
public void setTimeToLiveMs(Long timeToLiveMs)
public Long getTimeToLiveMs()
RpcRequest
getTimeToLiveMs
in interface RpcRequest
public Map<String,String> getTracingInfo()
RpcRequest
getTracingInfo
in interface RpcRequest
public void setDelay(Long delay)
public Long getDelay()
public void shouldThrow(boolean shouldThrow)
public boolean shouldThrow()
Copyright © 2020. All rights reserved.