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 |
getError() |
long |
getLastAccess() |
E |
getSocket() |
long |
getTimeout() |
boolean |
isAsync() |
boolean |
isKeptAlive() |
void |
setAsync(boolean async) |
void |
setError(boolean error) |
void |
setKeepAliveLeft(int keepAliveLeft) |
void |
setKeptAlive(boolean keptAlive) |
void |
setTimeout(long timeout) |
protected volatile E socket
protected volatile long lastAccess
protected 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 isAsync()
public void setAsync(boolean async)
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)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.