Class PingRequestDTO

  • All Implemented Interfaces:
    RpcRequest

    public class PingRequestDTO
    extends java.lang.Object
    implements RpcRequest
    • Constructor Detail

      • PingRequestDTO

        public PingRequestDTO()
    • Method Detail

      • getLocation

        public java.lang.String getLocation()
        Description copied from interface: RpcRequest
        Used to route the request to the appropriate location.
        Specified by:
        getLocation in interface RpcRequest
      • setSystemId

        public void setSystemId​(java.lang.String systemId)
      • getSystemId

        public java.lang.String getSystemId()
        Description copied from interface: RpcRequest
        Used to route the request to a particular system at the given location.
        Specified by:
        getSystemId in interface RpcRequest
      • getTimeToLiveMs

        public java.lang.Long getTimeToLiveMs()
        Description copied from interface: RpcRequest
        When using JMS, the request will fail if no response was received in this many milliseconds.
        Specified by:
        getTimeToLiveMs in interface RpcRequest
      • setLocation

        public void setLocation​(java.lang.String location)
      • setPacketSize

        public void setPacketSize​(int packetSize)
      • setRetries

        public void setRetries​(int retries)
      • setTimeout

        public void setTimeout​(long timeoutInMs)
      • setInetAddress

        public void setInetAddress​(java.net.InetAddress inetAddress)
      • getInetAddress

        public java.net.InetAddress getInetAddress()
      • getRetries

        public int getRetries()
      • getTimeout

        public long getTimeout()
      • getPacketSize

        public int getPacketSize()
      • getTracingInfo

        public java.util.Map<java.lang.String,​java.lang.String> getTracingInfo()
        Description copied from interface: RpcRequest
        RPC clients expose tracing info as tags there by giving more context to each RPC trace. Implementations should add tags defined above if they are available.
        Specified by:
        getTracingInfo in interface RpcRequest
      • getSpan

        public io.opentracing.Span getSpan()
        Specified by:
        getSpan in interface RpcRequest
      • addTracingInfo

        public void addTracingInfo​(java.lang.String key,
                                   java.lang.String value)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object