public class SocketWrapper<E>
extends java.lang.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() |
java.util.concurrent.locks.Lock |
getBlockingStatusReadLock() |
java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
getBlockingStatusWriteLock() |
boolean |
getError() |
java.util.Iterator<DispatchType> |
getIteratorAndClearDispatches() |
long |
getLastAccess() |
java.lang.String |
getLocalAddr() |
java.lang.String |
getLocalName() |
int |
getLocalPort() |
java.lang.String |
getRemoteAddr() |
java.lang.String |
getRemoteHost() |
int |
getRemotePort() |
E |
getSocket() |
long |
getTimeout() |
java.lang.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(java.lang.String localAddr) |
void |
setLocalName(java.lang.String localName) |
void |
setLocalPort(int localPort) |
void |
setRemoteAddr(java.lang.String remoteAddr) |
void |
setRemoteHost(java.lang.String remoteHost) |
void |
setRemotePort(int remotePort) |
void |
setSecure(boolean secure) |
void |
setTimeout(long timeout) |
void |
setUpgraded(boolean upgraded) |
java.lang.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 java.lang.String getLocalName()
public void setLocalName(java.lang.String localName)
public java.lang.String getLocalAddr()
public void setLocalAddr(java.lang.String localAddr)
public int getRemotePort()
public void setRemotePort(int remotePort)
public java.lang.String getRemoteHost()
public void setRemoteHost(java.lang.String remoteHost)
public java.lang.String getRemoteAddr()
public void setRemoteAddr(java.lang.String remoteAddr)
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 addDispatch(DispatchType dispatchType)
public java.util.Iterator<DispatchType> getIteratorAndClearDispatches()
public void clearDispatches()
public java.lang.String toString()
toString
in class java.lang.Object
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-2018 Apache Software Foundation. All Rights Reserved.