Class BinaryMemcachedNodeImpl
- java.lang.Object
-
- net.spy.memcached.compat.SpyObject
-
- net.spy.memcached.protocol.TCPMemcachedNodeImpl
-
- net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl
-
- All Implemented Interfaces:
MemcachedNode
public class BinaryMemcachedNodeImpl extends TCPMemcachedNodeImpl
Implementation of MemcachedNode for speakers of the binary protocol.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_GET_OPTIMIZATION_COUNT
private static int
MAX_SET_OPTIMIZATION_BYTES
private static int
MAX_SET_OPTIMIZATION_COUNT
-
Fields inherited from class net.spy.memcached.protocol.TCPMemcachedNodeImpl
optimizedOp, writeQ
-
-
Constructor Summary
Constructors Constructor Description BinaryMemcachedNodeImpl(java.net.SocketAddress sa, java.nio.channels.SocketChannel c, int bufSize, java.util.concurrent.BlockingQueue<Operation> rq, java.util.concurrent.BlockingQueue<Operation> wq, java.util.concurrent.BlockingQueue<Operation> iq, java.lang.Long opQueueMaxBlockTimeNs, boolean waitForAuth, long dt, long at, ConnectionFactory fa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
optimize()
private void
optimizeGets()
private void
optimizeSets()
-
Methods inherited from class net.spy.memcached.protocol.TCPMemcachedNodeImpl
addOp, authComplete, completedRead, connected, copyInputQueue, destroyInputQueue, fillWriteBuffer, fixupOps, getBytesRemainingToWrite, getChannel, getConnection, getContinuousTimeout, getCurrentReadOp, getCurrentWriteOp, getRbuf, getReconnectCount, getSelectionOps, getSk, getSocketAddress, getWbuf, hasReadOp, hasWriteOp, insertOp, isActive, isAuthenticated, lastReadDelta, reconnecting, registerChannel, removeCurrentReadOp, removeCurrentWriteOp, setChannel, setConnection, setContinuousTimeout, setSk, setupForAuth, setupResend, toString, transitionWriteItem, writeSome
-
-
-
-
Field Detail
-
MAX_GET_OPTIMIZATION_COUNT
private static final int MAX_GET_OPTIMIZATION_COUNT
- See Also:
- Constant Field Values
-
MAX_SET_OPTIMIZATION_COUNT
private static final int MAX_SET_OPTIMIZATION_COUNT
- See Also:
- Constant Field Values
-
MAX_SET_OPTIMIZATION_BYTES
private static final int MAX_SET_OPTIMIZATION_BYTES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BinaryMemcachedNodeImpl
public BinaryMemcachedNodeImpl(java.net.SocketAddress sa, java.nio.channels.SocketChannel c, int bufSize, java.util.concurrent.BlockingQueue<Operation> rq, java.util.concurrent.BlockingQueue<Operation> wq, java.util.concurrent.BlockingQueue<Operation> iq, java.lang.Long opQueueMaxBlockTimeNs, boolean waitForAuth, long dt, long at, ConnectionFactory fa)
-
-
Method Detail
-
optimize
protected void optimize()
- Specified by:
optimize
in classTCPMemcachedNodeImpl
-
optimizeGets
private void optimizeGets()
-
optimizeSets
private void optimizeSets()
-
-