public class SocketWrapper<E>
extends java.lang.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() |
java.util.concurrent.locks.Lock |
getBlockingStatusReadLock() |
java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
getBlockingStatusWriteLock() |
boolean |
getError() |
long |
getLastAccess() |
E |
getSocket() |
long |
getTimeout() |
java.lang.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) |
java.lang.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 java.util.concurrent.locks.Lock getBlockingStatusReadLock()
public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock getBlockingStatusWriteLock()
public java.lang.Object getWriteThreadLock()
public void reset(E socket, long timeout)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.