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> java.util.concurrent.CompletionStage<T> |
fail() |
java.lang.Throwable |
getConnectionFailure()
Returns the unrecoverable connection failure, if any.
|
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> java.util.concurrent.CompletionStage<T> |
send(Request<T> request) |
void |
shutdown()
Shut down the client.
|
notifyConnectionChange, registerForConnectionChanges, unregisterForConnectionChangesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitConnected, awaitDisconnected, awaitFullyConnected, awaitFullyDisconnected, awaitFuture, connectFuture, disconnectFuture, fullyConnectedFuture, fullyDisconnectFuturepublic static final NotConnectedClient INSTANCE
public <T> java.util.concurrent.CompletionStage<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 java.lang.Throwable getConnectionFailure()
ObservableClientpublic int numTotalConnections()
RawMemcacheClientpublic int numActiveConnections()
RawMemcacheClientprivate <T> java.util.concurrent.CompletionStage<T> fail()
Copyright © 2020 Spotify AB. All Rights Reserved.