public class SocketWrapper<E> extends Object
Constructor and Description |
---|
SocketWrapper(E socket) |
public SocketWrapper(E socket)
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 boolean isSecure()
public void setSecure(boolean secure)
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()
public Object getWriteThreadLock()
public void addDispatch(DispatchType dispatchType)
public Iterator<DispatchType> getIteratorAndClearDispatches()
public void clearDispatches()
public void reset(E socket, long timeout)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.