Package com.linkedin.alpini.router.api
Interface ResourcePath<K>
-
- All Known Implementing Classes:
VeniceComputePath
,VeniceMultiGetPath
,VeniceMultiKeyPath
,VenicePath
,VeniceSingleGetPath
public interface ResourcePath<K>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getLocation()
default K
getPartitionKey()
java.util.Collection<K>
getPartitionKeys()
java.lang.String
getResourceName()
default void
setRetryRequest()
default void
setRetryRequest(io.netty.handler.codec.http.HttpResponseStatus status)
If the inherited class wants to know whether the current path belongs to a retry request or not, it needs to implement this method properly to maintain the internal state.
-
-
-
Method Detail
-
getPartitionKey
default K getPartitionKey()
-
getLocation
@Nonnull java.lang.String getLocation()
-
getPartitionKeys
@Nonnull java.util.Collection<K> getPartitionKeys()
-
getResourceName
@Nonnull java.lang.String getResourceName()
-
setRetryRequest
default void setRetryRequest(io.netty.handler.codec.http.HttpResponseStatus status)
If the inherited class wants to know whether the current path belongs to a retry request or not, it needs to implement this method properly to maintain the internal state.
-
setRetryRequest
default void setRetryRequest()
-
-