public class NotConnectedClient extends AbstractRawMemcacheClient
| Modifier and Type | Field and Description |
|---|---|
static NotConnectedClient |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
NotConnectedClient() |
| Modifier and Type | Method and Description |
|---|---|
private <T> com.google.common.util.concurrent.ListenableFuture<T> |
fail() |
boolean |
isConnected()
Is the client connected to a server?
|
int |
numActiveConnections()
How many active socket connections do we have (i.e.
|
int |
numTotalConnections()
How many actual socket connections do we have, including currently disconnected clients.
|
<T> com.google.common.util.concurrent.ListenableFuture<T> |
send(Request<T> request) |
void |
shutdown()
Shut down the client.
|
notifyConnectionChange, registerForConnectionChanges, unregisterForConnectionChangespublic static final NotConnectedClient INSTANCE
public <T> com.google.common.util.concurrent.ListenableFuture<T> send(Request<T> request)
public void shutdown()
RawMemcacheClientObservableClient.registerForConnectionChanges(ConnectionChangeListener) to
to get notified when it has (possibly) finished shutting downpublic boolean isConnected()
ObservableClientpublic int numTotalConnections()
RawMemcacheClientpublic int numActiveConnections()
RawMemcacheClientprivate <T> com.google.common.util.concurrent.ListenableFuture<T> fail()
Copyright © 2017 Spotify AB. All rights reserved.