Package io.etcd.jetcd.support
Class Util
java.lang.Object
io.etcd.jetcd.support.Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends io.grpc.stub.AbstractStub<T>>
TapplyRequireLeader(boolean requireLeader, T stub) static ThreadFactorycreateThreadFactory(String prefix, boolean daemon) static com.google.protobuf.ByteStringprefixNamespace(com.google.protobuf.ByteString key, ByteSequence namespace) static com.google.protobuf.ByteStringprefixNamespace(ByteSequence key, ByteSequence namespace) static com.google.protobuf.ByteStringprefixNamespaceToRangeEnd(com.google.protobuf.ByteString end, ByteSequence namespace) static com.google.protobuf.ByteStringprefixNamespaceToRangeEnd(ByteSequence end, ByteSequence namespace) toURIs(Collection<String> uris) static com.google.protobuf.ByteStringunprefixNamespace(com.google.protobuf.ByteString key, ByteSequence namespace)
-
Method Details
-
toURIs
-
prefixNamespace
public static com.google.protobuf.ByteString prefixNamespace(ByteSequence key, ByteSequence namespace) -
prefixNamespace
public static com.google.protobuf.ByteString prefixNamespace(com.google.protobuf.ByteString key, ByteSequence namespace) -
prefixNamespaceToRangeEnd
public static com.google.protobuf.ByteString prefixNamespaceToRangeEnd(ByteSequence end, ByteSequence namespace) -
prefixNamespaceToRangeEnd
public static com.google.protobuf.ByteString prefixNamespaceToRangeEnd(com.google.protobuf.ByteString end, ByteSequence namespace) -
unprefixNamespace
public static com.google.protobuf.ByteString unprefixNamespace(com.google.protobuf.ByteString key, ByteSequence namespace) -
applyRequireLeader
public static <T extends io.grpc.stub.AbstractStub<T>> T applyRequireLeader(boolean requireLeader, T stub) -
createThreadFactory
-