public class MemcachedConnection extends AbstractProtocolConnection
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProtocolRequestURL()
Returns a default debugging identifier for the connection
|
boolean |
handleRequest()
Handles a new connection.
|
boolean |
handleResume()
Handles a resumption of the connection for an async/comet request.
|
void |
init()
Initialize the connection.
|
boolean |
isWaitForRead()
Return true if the connection should wait for a read before
handling the request.
|
void |
onCloseConnection()
Handles a close event when the connection is closed.
|
void |
onStartConnection()
Called when the connection starts, i.e.
|
java.lang.String |
toString() |
onAttachThread, onDetachThread
public java.lang.String getProtocolRequestURL()
AbstractProtocolConnection
getProtocolRequestURL
in interface ProtocolConnection
getProtocolRequestURL
in class AbstractProtocolConnection
public void init()
AbstractProtocolConnection
init
in interface ProtocolConnection
init
in class AbstractProtocolConnection
public boolean handleRequest() throws java.io.IOException
AbstractProtocolConnection
handleRequest
in interface ProtocolConnection
handleRequest
in class AbstractProtocolConnection
java.io.IOException
public boolean handleResume() throws java.io.IOException
AbstractProtocolConnection
handleResume
in interface ProtocolConnection
handleResume
in class AbstractProtocolConnection
java.io.IOException
public boolean isWaitForRead()
ProtocolConnection
public void onCloseConnection()
AbstractProtocolConnection
onCloseConnection
in interface ProtocolConnection
onCloseConnection
in class AbstractProtocolConnection
public void onStartConnection()
ProtocolConnection
onStartConnection
in interface ProtocolConnection
onStartConnection
in class AbstractProtocolConnection
public java.lang.String toString()
toString
in class java.lang.Object