Package io.temporal.internal.common
Class GrpcUtils
- java.lang.Object
-
- io.temporal.internal.common.GrpcUtils
-
public class GrpcUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GrpcUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisChannelShutdownException(io.grpc.StatusRuntimeException ex)static <T> java.util.concurrent.CompletableFuture<T>toCompletableFuture(com.google.common.util.concurrent.ListenableFuture<T> listenableFuture)
-
-
-
Method Detail
-
isChannelShutdownException
public static boolean isChannelShutdownException(io.grpc.StatusRuntimeException ex)
- Returns:
- true if
exis a gRPC exception about a channel shutdown
-
toCompletableFuture
public static <T> java.util.concurrent.CompletableFuture<T> toCompletableFuture(com.google.common.util.concurrent.ListenableFuture<T> listenableFuture)
-
-