public class EchoRequest extends Object implements RpcRequest
Constructor and Description |
---|
EchoRequest() |
EchoRequest(String message) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
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 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 void setDelay(Long delay)
public Long getDelay()
public void shouldThrow(boolean shouldThrow)
public boolean shouldThrow()
Copyright © 2018. All rights reserved.