public abstract class AbstractMultiMemcacheClient extends AbstractRawMemcacheClient implements ConnectionChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<RawMemcacheClient> |
clients |
| Constructor and Description |
|---|
AbstractMultiMemcacheClient(java.util.Collection<RawMemcacheClient> clients) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionChanged(ObservableClient client) |
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.
|
void |
shutdown()
Shut down the client.
|
java.lang.String |
toString() |
notifyConnectionChange, registerForConnectionChanges, unregisterForConnectionChangesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsendawaitConnected, awaitDisconnected, awaitFullyConnected, awaitFullyDisconnected, awaitFuture, connectFuture, disconnectFuture, fullyConnectedFuture, fullyDisconnectFutureprotected final java.util.Collection<RawMemcacheClient> clients
public AbstractMultiMemcacheClient(java.util.Collection<RawMemcacheClient> clients)
public void shutdown()
RawMemcacheClientObservableClient.registerForConnectionChanges(ConnectionChangeListener) to to
get notified when it has (possibly) finished shutting downshutdown in interface RawMemcacheClientpublic boolean isConnected()
ObservableClientisConnected in interface ObservableClientpublic int numTotalConnections()
RawMemcacheClientnumTotalConnections in interface ObservableClientnumTotalConnections in interface RawMemcacheClientpublic int numActiveConnections()
RawMemcacheClientnumActiveConnections in interface ObservableClientnumActiveConnections in interface RawMemcacheClientpublic java.lang.String toString()
toString in class java.lang.Objectpublic void connectionChanged(ObservableClient client)
connectionChanged in interface ConnectionChangeListenerpublic java.lang.Throwable getConnectionFailure()
ObservableClientgetConnectionFailure in interface ObservableClientCopyright © 2020 Spotify AB. All Rights Reserved.