public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isHaltError(io.grpc.Status status) |
static boolean |
isInvalidTokenError(io.grpc.Status status) |
static boolean |
isNoLeaderError(io.grpc.Status status) |
static boolean |
isRetryable(Throwable e) |
static com.google.protobuf.ByteString |
prefixNamespace(com.google.protobuf.ByteString key,
ByteSequence namespace) |
static com.google.protobuf.ByteString |
prefixNamespaceToRangeEnd(com.google.protobuf.ByteString end,
ByteSequence namespace) |
static <T> T |
supplyIfNull(T target,
Supplier<T> supplier) |
static List<URI> |
toURIs(Collection<String> uris) |
static com.google.protobuf.ByteString |
unprefixNamespace(com.google.protobuf.ByteString key,
ByteSequence namespace) |
public static List<URI> toURIs(Collection<String> uris)
public static boolean isRetryable(Throwable e)
public static boolean isInvalidTokenError(io.grpc.Status status)
public static <T> T supplyIfNull(T target,
Supplier<T> supplier)
public static com.google.protobuf.ByteString prefixNamespace(com.google.protobuf.ByteString key,
ByteSequence namespace)
public static com.google.protobuf.ByteString prefixNamespaceToRangeEnd(com.google.protobuf.ByteString end,
ByteSequence namespace)
public static com.google.protobuf.ByteString unprefixNamespace(com.google.protobuf.ByteString key,
ByteSequence namespace)
public static boolean isHaltError(io.grpc.Status status)
public static boolean isNoLeaderError(io.grpc.Status status)
Copyright © 2021. All rights reserved.