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(RawMemcacheClient 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()
RawMemcacheClientRawMemcacheClient.registerForConnectionChanges(ConnectionChangeListener) to
to get notified when it has (possibly) finished shutting downshutdown in interface RawMemcacheClientpublic boolean isConnected()
RawMemcacheClientisConnected in interface RawMemcacheClientpublic int numTotalConnections()
RawMemcacheClientnumTotalConnections in interface RawMemcacheClientpublic int numActiveConnections()
RawMemcacheClientnumActiveConnections in interface RawMemcacheClientpublic void connectionChanged(RawMemcacheClient client)
connectionChanged in interface ConnectionChangeListenerCopyright © 2015 Spotify AB. All Rights Reserved.