public class SocketWrapper<E> extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
async |
protected boolean |
error |
protected int |
keepAliveLeft |
protected boolean |
keptAlive |
protected long |
lastAccess |
protected E |
socket |
Constructor and Description |
---|
SocketWrapper(E socket) |
protected volatile E socket
protected volatile long lastAccess
protected boolean error
protected volatile int keepAliveLeft
protected boolean async
protected boolean keptAlive
public SocketWrapper(E socket)
public Object getWriteThreadLock()
public E getSocket()
public boolean isComet()
public void setComet(boolean comet)
public boolean isAsync()
public void setAsync(boolean async)
public boolean isUpgraded()
public void setUpgraded(boolean upgraded)
public long getLastAccess()
public void access()
public void access(long access)
public void setTimeout(long timeout)
public long getTimeout()
public boolean getError()
public void setError(boolean error)
public void setKeepAliveLeft(int keepAliveLeft)
public int decrementKeepAlive()
public boolean isKeptAlive()
public void setKeptAlive(boolean keptAlive)
public int getLocalPort()
public void setLocalPort(int localPort)
public String getLocalName()
public void setLocalName(String localName)
public String getLocalAddr()
public void setLocalAddr(String localAddr)
public int getRemotePort()
public void setRemotePort(int remotePort)
public String getRemoteHost()
public void setRemoteHost(String remoteHost)
public String getRemoteAddr()
public void setRemoteAddr(String remoteAddr)
public boolean getBlockingStatus()
public void setBlockingStatus(boolean blockingStatus)
public Lock getBlockingStatusReadLock()
public ReentrantReadWriteLock.WriteLock getBlockingStatusWriteLock()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.