Class RouterRequest
- java.lang.Object
-
- com.linkedin.venice.listener.request.RouterRequest
-
- Direct Known Subclasses:
GetRouterRequest
,MultiKeyRouterRequestWrapper
public abstract class RouterRequest extends java.lang.Object
RouterRequest
is an abstract base class for single-get and multi-get operations.- See Also:
GetRouterRequest
,MultiGetRouterRequestWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static long
NO_REQUEST_TIMEOUT
-
Constructor Summary
Constructors Constructor Description RouterRequest(java.lang.String resourceName, boolean isRetryRequest, boolean isStreamingRequest)
RouterRequest(java.lang.String resourceName, io.netty.handler.codec.http.HttpRequest request)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
getKeyCount()
abstract RequestType
getRequestType()
java.lang.String
getResourceName()
java.lang.String
getStoreName()
boolean
isRetryRequest()
boolean
isStreamingRequest()
void
setRequestTimeoutInNS(long requestTimeoutInNS)
boolean
shouldRequestBeTerminatedEarly()
-
-
-
Field Detail
-
NO_REQUEST_TIMEOUT
public static final long NO_REQUEST_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setRequestTimeoutInNS
public void setRequestTimeoutInNS(long requestTimeoutInNS)
-
getResourceName
public java.lang.String getResourceName()
-
getStoreName
public java.lang.String getStoreName()
-
getRequestType
public abstract RequestType getRequestType()
-
getKeyCount
public abstract int getKeyCount()
-
isRetryRequest
public boolean isRetryRequest()
-
isStreamingRequest
public boolean isStreamingRequest()
-
shouldRequestBeTerminatedEarly
public boolean shouldRequestBeTerminatedEarly()
-
-