Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.mina.common.support.BaseIoSession
IoSession
.
Constructor Summary | |
Method Summary | |
@Override | |
CloseFuture |
|
protected void |
|
boolean |
|
Object | |
Object |
|
Set | |
CloseFuture | |
long | |
int |
|
int |
|
long |
|
long |
|
long | |
long | |
long | |
long | |
long | |
int | |
int | |
TrafficMask | |
int | |
long | |
long | |
long | |
long | |
void |
|
void |
|
void | |
void |
|
void | |
void |
|
void | |
boolean | |
boolean | |
boolean |
|
boolean | |
Object |
|
void | |
void | |
Object |
|
Object |
|
Object |
|
void |
|
boolean |
|
void |
|
void |
|
void | |
void | |
protected abstract void |
|
WriteFuture |
|
WriteFuture |
|
protected void |
|
public @Override String toString()
protected void close0()
Implement this method to perform real close operation. By default, this method is implemented to set the future to 'closed' immediately.
public boolean containsAttribute(String key)
- Specified by:
- containsAttribute in interface IoSession
public int getIdleCount(IdleStatus status)
- Specified by:
- getIdleCount in interface IoSession
public long getIdleTimeInMillis(IdleStatus status)
- Specified by:
- getIdleTimeInMillis in interface IoSession
public long getLastIdleTime(IdleStatus status)
- Specified by:
- getLastIdleTime in interface IoSession
public int getScheduledWriteBytes()
- Specified by:
- getScheduledWriteBytes in interface IoSession
public int getScheduledWriteRequests()
- Specified by:
- getScheduledWriteRequests in interface IoSession
public long getWriteTimeoutInMillis()
- Specified by:
- getWriteTimeoutInMillis in interface IoSession
public long getWrittenMessages()
- Specified by:
- getWrittenMessages in interface IoSession
public long getWrittenWriteRequests()
- Specified by:
- getWrittenWriteRequests in interface IoSession
public void increaseReadBytes(int increment)
public void increaseReadMessages()
public void increaseScheduledWriteBytes(int increment)
public void increaseScheduledWriteRequests()
public void increaseWrittenBytes(int increment)
public void increaseWrittenMessages()
public boolean isScheduledForFlush()
public Object removeAttribute(String key)
- Specified by:
- removeAttribute in interface IoSession
public Object setAttachment(Object attachment)
- Specified by:
- setAttachment in interface IoSession
public Object setAttribute(String key, Object value)
- Specified by:
- setAttribute in interface IoSession
public void setIdleTime(IdleStatus status, int idleTime)
- Specified by:
- setIdleTime in interface IoSession
public boolean setScheduledForFlush(boolean flag)
public void setTrafficMask(TrafficMask trafficMask)
- Specified by:
- setTrafficMask in interface IoSession
public void setWriteTimeout(int writeTimeout)
- Specified by:
- setWriteTimeout in interface IoSession
protected abstract void updateTrafficMask()
Signals theIoService
that theTrafficMask
of this session has been changed.
protected void write0(IoFilter.WriteRequest writeRequest)
Implement this method to perform real write operation with the specifiedwriteRequest
. By default, this method is implemented to set the future to 'not written' immediately.
- Parameters:
writeRequest
- Write request to make