public class ConnectFuture extends com.google.common.util.concurrent.AbstractFuture<Void> implements ConnectionChangeListener
| Modifier and Type | Field and Description |
|---|---|
private boolean |
awaitedState |
| Modifier | Constructor and Description |
|---|---|
private |
ConnectFuture(RawMemcacheClient client,
boolean awaitedState)
Create a future that completes once the client reaches the awaited state
|
| Modifier and Type | Method and Description |
|---|---|
private void |
check(RawMemcacheClient client) |
static com.google.common.util.concurrent.ListenableFuture<Void> |
connectFuture(RawMemcacheClient client) |
void |
connectionChanged(RawMemcacheClient client) |
static com.google.common.util.concurrent.ListenableFuture<Void> |
disconnectFuture(RawMemcacheClient client) |
private ConnectFuture(RawMemcacheClient client, boolean awaitedState)
client - awaitedState - public static com.google.common.util.concurrent.ListenableFuture<Void> disconnectFuture(RawMemcacheClient client)
public static com.google.common.util.concurrent.ListenableFuture<Void> connectFuture(RawMemcacheClient client)
public void connectionChanged(RawMemcacheClient client)
connectionChanged in interface ConnectionChangeListenerprivate void check(RawMemcacheClient client)
Copyright © 2015 Spotify AB. All Rights Reserved.