K - the type of the keyV - the type of the value@InterfaceStability.Unstable public static interface TableRateLimiter.CreditFunction<K,V> extends TablePart, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
default int |
getCredits(int opId,
java.lang.Object... args)
Get the number of credits required for the
opId and associated args. |
int |
getCredits(K key,
V value,
java.lang.Object... args)
Get the number of credits required for the
key and value pair. |
int getCredits(K key, V value, java.lang.Object... args)
key and value pair.key - table keyvalue - table recordargs - additional argumentsdefault int getCredits(int opId,
java.lang.Object... args)
opId and associated args.opId - operation Idargs - additional arguments