Package com.danga.MemCached
Class MemCachedClient.NIOLoader
- java.lang.Object
-
- com.danga.MemCached.MemCachedClient.NIOLoader
-
- Enclosing class:
- MemCachedClient
protected final class MemCachedClient.NIOLoader extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
MemCachedClient.NIOLoader.Connection
-
Field Summary
Fields Modifier and Type Field Description protected MemCachedClient.NIOLoader.Connection[]
conns
protected MemCachedClient
mc
protected int
numConns
protected java.nio.channels.Selector
selector
-
Constructor Summary
Constructors Constructor Description NIOLoader(MemCachedClient mc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doMulti(boolean asString, java.util.Map<java.lang.String,java.lang.StringBuilder> sockKeys, java.lang.String[] keys, java.util.Map<java.lang.String,java.lang.Object> ret)
private void
handleError(java.lang.Throwable e, java.lang.String[] keys)
private void
handleKey(java.nio.channels.SelectionKey key)
void
readResponse(java.nio.channels.SelectionKey key)
void
writeRequest(java.nio.channels.SelectionKey key)
-
-
-
Field Detail
-
selector
protected java.nio.channels.Selector selector
-
numConns
protected int numConns
-
mc
protected MemCachedClient mc
-
conns
protected MemCachedClient.NIOLoader.Connection[] conns
-
-
Constructor Detail
-
NIOLoader
public NIOLoader(MemCachedClient mc)
-
-
Method Detail
-
doMulti
public void doMulti(boolean asString, java.util.Map<java.lang.String,java.lang.StringBuilder> sockKeys, java.lang.String[] keys, java.util.Map<java.lang.String,java.lang.Object> ret)
-
handleError
private void handleError(java.lang.Throwable e, java.lang.String[] keys)
-
handleKey
private void handleKey(java.nio.channels.SelectionKey key) throws java.io.IOException
- Throws:
java.io.IOException
-
writeRequest
public void writeRequest(java.nio.channels.SelectionKey key) throws java.io.IOException
- Throws:
java.io.IOException
-
readResponse
public void readResponse(java.nio.channels.SelectionKey key) throws java.io.IOException
- Throws:
java.io.IOException
-
-