public class SocketWrapper<E> extends Object
Constructor and Description |
---|
SocketWrapper(E socket) |
Modifier and Type | Method and Description |
---|---|
void |
access() |
void |
access(long access) |
void |
addDispatch(DispatchType dispatchType) |
void |
clearDispatches() |
int |
decrementKeepAlive() |
boolean |
getBlockingStatus() |
Lock |
getBlockingStatusReadLock() |
ReentrantReadWriteLock.WriteLock |
getBlockingStatusWriteLock() |
boolean |
getError() |
Iterator<DispatchType> |
getIteratorAndClearDispatches() |
long |
getLastAccess() |
String |
getLocalAddr() |
String |
getLocalName() |
int |
getLocalPort() |
String |
getRemoteAddr() |
String |
getRemoteHost() |
int |
getRemotePort() |
E |
getSocket() |
long |
getTimeout() |
Object |
getWriteThreadLock() |
boolean |
isAsync() |
boolean |
isComet() |
boolean |
isKeptAlive() |
boolean |
isSecure() |
boolean |
isUpgraded() |
void |
registerforEvent(int timeout,
boolean read,
boolean write)
Register the associated socket for the requested events.
|
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 |
setLocalAddr(String localAddr) |
void |
setLocalName(String localName) |
void |
setLocalPort(int localPort) |
void |
setRemoteAddr(String remoteAddr) |
void |
setRemoteHost(String remoteHost) |
void |
setRemotePort(int remotePort) |
void |
setSecure(boolean secure) |
void |
setTimeout(long timeout) |
void |
setUpgraded(boolean upgraded) |
String |
toString()
Overridden for debug purposes.
|
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 String toString()
public void registerforEvent(int timeout, boolean read, boolean write)
timeout
- The time to wait for the event(s) to occurread
- Should the socket be register for read?write
- Should the socket be register for write?Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.