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
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()
isComet
public boolean isComet()
setComet
public void setComet(boolean comet)
isAsync
public boolean isAsync()
setAsync
public void setAsync(boolean async)
isUpgraded
public boolean isUpgraded()
setUpgraded
public void setUpgraded(boolean upgraded)
isSecure
public boolean isSecure()
setSecure
public void setSecure(boolean secure)
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)
getBlockingStatus
public boolean getBlockingStatus()
setBlockingStatus
public void setBlockingStatus(boolean blockingStatus)
getBlockingStatusReadLock
public Lock getBlockingStatusReadLock()
getBlockingStatusWriteLock
public ReentrantReadWriteLock.WriteLock getBlockingStatusWriteLock()
getWriteThreadLock
public Object getWriteThreadLock()
reset
public void reset(E socket,
long timeout)
toString
public String toString()
- Overridden for debug purposes. No guarantees are made about the format of
this message which may vary significantly between point releases.
- Overrides:
toString
in class Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.