public final class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
TTL_CUTOFF |
| Modifier | Constructor and Description |
|---|---|
private |
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.function.Function<java.util.List<java.util.List<T>>,java.util.List<T>> |
flatten() |
static int |
getGlobalConnectionCount()
A counter of all currently connected clients.
|
(package private) static <T> java.util.concurrent.CompletionStage<T> |
onExecutor(java.util.concurrent.CompletionStage<T> future,
java.util.concurrent.Executor executor) |
static int |
ttlToExpiration(int ttl) |
static java.lang.Throwable |
unwrap(java.lang.Throwable e) |
private static final int TTL_CUTOFF
public static int ttlToExpiration(int ttl)
public static <T> java.util.function.Function<java.util.List<java.util.List<T>>,java.util.List<T>> flatten()
public static int getGlobalConnectionCount()
public static java.lang.Throwable unwrap(java.lang.Throwable e)
static <T> java.util.concurrent.CompletionStage<T> onExecutor(java.util.concurrent.CompletionStage<T> future,
java.util.concurrent.Executor executor)
Copyright © 2020 Spotify AB. All Rights Reserved.