org.apache.tomcat.util.net
Class SocketWrapper<E>
java.lang.Object
org.apache.tomcat.util.net.SocketWrapper<E>
- Direct Known Subclasses:
- NioEndpoint.KeyAttachment
public class SocketWrapper<E>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
protected volatile E socket
lastAccess
protected volatile long lastAccess
timeout
protected long timeout
error
protected boolean error
lastRegistered
protected long lastRegistered
keepAliveLeft
protected volatile int keepAliveLeft
async
protected boolean async
keptAlive
protected boolean keptAlive
SocketWrapper
public SocketWrapper(E socket)
getSocket
public E getSocket()
isAsync
public boolean isAsync()
setAsync
public void setAsync(boolean async)
getLastAccess
public long getLastAccess()
access
public void access()
access
public void access(long access)
setTimeout
public void setTimeout(long timeout)
getTimeout
public long getTimeout()
getError
public boolean getError()
setError
public void setError(boolean error)
setKeepAliveLeft
public void setKeepAliveLeft(int keepAliveLeft)
decrementKeepAlive
public int decrementKeepAlive()
isKeptAlive
public boolean isKeptAlive()
setKeptAlive
public void setKeptAlive(boolean keptAlive)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.