public class ConnectFuture extends java.util.concurrent.CompletableFuture<java.lang.Void> implements ConnectionChangeListener
| Modifier and Type | Field and Description |
|---|---|
private boolean |
awaitConnected |
private boolean |
requireAll |
| Modifier | Constructor and Description |
|---|---|
private |
ConnectFuture(ObservableClient client,
boolean awaitConnected,
boolean requireAll)
Create a future that completes once the client reaches the awaited state
|
| Modifier and Type | Method and Description |
|---|---|
private void |
check(ObservableClient client) |
static java.util.concurrent.CompletionStage<java.lang.Void> |
connectFuture(ObservableClient client) |
void |
connectionChanged(ObservableClient client) |
static java.util.concurrent.CompletionStage<java.lang.Void> |
disconnectFuture(ObservableClient client) |
static java.util.concurrent.CompletionStage<java.lang.Void> |
fullyConnectedFuture(ObservableClient client) |
static java.util.concurrent.CompletionStage<java.lang.Void> |
fullyDisconnectedFuture(ObservableClient client) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncprivate final boolean awaitConnected
private final boolean requireAll
private ConnectFuture(ObservableClient client, boolean awaitConnected, boolean requireAll)
client - awaitConnected - requireAll - public static java.util.concurrent.CompletionStage<java.lang.Void> disconnectFuture(ObservableClient client)
public static java.util.concurrent.CompletionStage<java.lang.Void> fullyDisconnectedFuture(ObservableClient client)
public static java.util.concurrent.CompletionStage<java.lang.Void> connectFuture(ObservableClient client)
public static java.util.concurrent.CompletionStage<java.lang.Void> fullyConnectedFuture(ObservableClient client)
public void connectionChanged(ObservableClient client)
connectionChanged in interface ConnectionChangeListenerprivate void check(ObservableClient client)
Copyright © 2020 Spotify AB. All Rights Reserved.