Package | Description |
---|---|
com.danga.MemCached |
Modifier and Type | Field and Description |
---|---|
SockIOPool.SockIO |
MemCachedClient.NIOLoader.Connection.sock |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> |
SockIOPool.availPool |
private java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> |
SockIOPool.busyPool |
private java.util.Map<SockIOPool.SockIO,java.lang.Integer> |
SockIOPool.deadPool |
Modifier and Type | Method and Description |
---|---|
protected SockIOPool.SockIO |
SockIOPool.createSocket(java.lang.String host)
Creates a new SockIO obj for the given server.
|
SockIOPool.SockIO |
SockIOPool.getConnection(java.lang.String host)
Returns a SockIO object from the pool for the passed in host.
|
SockIOPool.SockIO |
SockIOPool.getSock(java.lang.String key)
Returns appropriate SockIO object given
string cache key.
|
SockIOPool.SockIO |
SockIOPool.getSock(java.lang.String key,
java.lang.Integer hashCode)
Returns appropriate SockIO object given
string cache key and optional hashcode.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SockIOPool.addSocketToPool(java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> pool,
java.lang.String host,
SockIOPool.SockIO socket)
Adds a socket to a given pool for the given host.
|
private void |
SockIOPool.checkIn(SockIOPool.SockIO socket)
Returns a socket to the avail pool.
|
private void |
SockIOPool.checkIn(SockIOPool.SockIO socket,
boolean addToAvail)
Checks a SockIO object in with the pool.
|
protected void |
SockIOPool.removeSocketFromPool(java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> pool,
java.lang.String host,
SockIOPool.SockIO socket)
Removes a socket from specified pool for host.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SockIOPool.addSocketToPool(java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> pool,
java.lang.String host,
SockIOPool.SockIO socket)
Adds a socket to a given pool for the given host.
|
protected void |
SockIOPool.clearHostFromPool(java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> pool,
java.lang.String host)
Closes and removes all sockets from specified pool for host.
|
protected void |
SockIOPool.closePool(java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> pool)
Closes all sockets in the passed in pool.
|
protected void |
SockIOPool.removeSocketFromPool(java.util.Map<java.lang.String,java.util.Map<SockIOPool.SockIO,java.lang.Long>> pool,
java.lang.String host,
SockIOPool.SockIO socket)
Removes a socket from specified pool for host.
|
Constructor and Description |
---|
Connection(SockIOPool.SockIO sock,
java.lang.StringBuilder request) |
Copyright © 2005 - greg whalin