public abstract class AbstractMultiMemcacheClient extends AbstractRawMemcacheClient implements ConnectionChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected Collection<RawMemcacheClient> |
clients |
| Constructor and Description |
|---|
AbstractMultiMemcacheClient(Collection<RawMemcacheClient> clients) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionChanged(ObservableClient client) |
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.
|
String |
toString() |
notifyConnectionChange, registerForConnectionChanges, unregisterForConnectionChangesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsendprotected final Collection<RawMemcacheClient> clients
public AbstractMultiMemcacheClient(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 RawMemcacheClientpublic int numActiveConnections()
RawMemcacheClientnumActiveConnections in interface RawMemcacheClientpublic void connectionChanged(ObservableClient client)
connectionChanged in interface ConnectionChangeListenerCopyright © 2017 Spotify AB. All Rights Reserved.