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 long |
lastRegistered |
protected E |
socket |
protected long |
timeout |
Constructor and Description |
---|
SocketWrapper(E socket) |
Modifier and Type | Method and Description |
---|---|
void |
access() |
void |
access(long access) |
int |
decrementKeepAlive() |
boolean |
getBlockingStatus() |
Lock |
getBlockingStatusReadLock() |
ReentrantReadWriteLock.WriteLock |
getBlockingStatusWriteLock() |
boolean |
getError() |
long |
getLastAccess() |
E |
getSocket() |
long |
getTimeout() |
Object |
getWriteThreadLock() |
boolean |
isAsync() |
boolean |
isComet() |
boolean |
isKeptAlive() |
boolean |
isSecure() |
boolean |
isUpgraded() |
void |
reset(E socket,
long timeout) |
void |
setAsync(boolean async) |
void |
setBlockingStatus(boolean blockingStatus) |
void |
setComet(boolean comet) |
void |
setError(boolean error) |
void |
setKeepAliveLeft(int keepAliveLeft) |
void |
setKeptAlive(boolean keptAlive) |
void |
setSecure(boolean secure) |
void |
setTimeout(long timeout) |
void |
setUpgraded(boolean upgraded) |
String |
toString()
Overridden for debug purposes.
|
protected volatile E socket
protected volatile long lastAccess
protected volatile long timeout
protected boolean error
protected long lastRegistered
protected volatile int keepAliveLeft
protected boolean async
protected boolean keptAlive
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 boolean getBlockingStatus()
public void setBlockingStatus(boolean blockingStatus)
public Lock getBlockingStatusReadLock()
public ReentrantReadWriteLock.WriteLock getBlockingStatusWriteLock()
public Object getWriteThreadLock()
public void reset(E socket, long timeout)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.