public class CouchbaseMemcachedConnection extends net.spy.memcached.MemcachedConnection implements Reconfigurable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
reconfiguring |
| Constructor and Description |
|---|
CouchbaseMemcachedConnection(int bufSize,
CouchbaseConnectionFactory f,
java.util.List<java.net.InetSocketAddress> a,
java.util.Collection<net.spy.memcached.ConnectionObserver> obs,
net.spy.memcached.FailureMode fm,
net.spy.memcached.OperationFactory opfactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOperation(java.lang.String key,
net.spy.memcached.ops.Operation o) |
protected void |
handleWokenUpSelector()
Make sure that if the selector is woken up manually for an extended period
of time that the sockets are still alive.
|
protected void |
queueReconnect(net.spy.memcached.MemcachedNode node)
Only queue for reconnect if the given node is still part of the cluster.
|
void |
reconfigure(Bucket bucket)
Call on a configuration update.
|
void |
run()
Infinitely loop processing IO.
|
addObserver, addOperation, addOperations, broadcastOperation, broadcastOperation, checkState, connectionsStatus, createConnections, enqueueOperation, getLocator, handleIO, handleRetryInformation, insertOperation, isShutDown, opSucceeded, opTimedOut, redistributeOperation, redistributeOperations, registerMetrics, removeObserver, retryOperation, shutdown, toStringactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldpublic CouchbaseMemcachedConnection(int bufSize,
CouchbaseConnectionFactory f,
java.util.List<java.net.InetSocketAddress> a,
java.util.Collection<net.spy.memcached.ConnectionObserver> obs,
net.spy.memcached.FailureMode fm,
net.spy.memcached.OperationFactory opfactory)
throws java.io.IOException
java.io.IOExceptionpublic void reconfigure(Bucket bucket)
Reconfigurablereconfigure in interface Reconfigurablebucket - updated vbucket configurationprotected void addOperation(java.lang.String key,
net.spy.memcached.ops.Operation o)
addOperation in class net.spy.memcached.MemcachedConnectionpublic void run()
run in interface java.lang.Runnablerun in class net.spy.memcached.MemcachedConnectionprotected void queueReconnect(net.spy.memcached.MemcachedNode node)
queueReconnect in class net.spy.memcached.MemcachedConnectionnode - the node to check.protected void handleWokenUpSelector()
This is done by broadcasting a operation so that disconnected sockets are discovered even when no load is applied.
handleWokenUpSelector in class net.spy.memcached.MemcachedConnectionCopyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.