| |
|
| java.lang.Object org.apache.mina.common.AbstractIoSession org.apache.mina.common.DummySession
All known Subclasses: org.apache.mina.filter.codec.ProtocolCodecSession,
Constructor Summary | |
public | DummySession() Creates a new instance. |
DummySession | public DummySession()(Code) | | Creates a new instance.
|
setLocalAddress | public void setLocalAddress(SocketAddress localAddress)(Code) | | Sets the socket address of local machine which is associated with
this session.
|
setRemoteAddress | public void setRemoteAddress(SocketAddress remoteAddress)(Code) | | Sets the socket address of remote peer.
|
setScheduledWriteBytes | public void setScheduledWriteBytes(long byteCount)(Code) | | |
setScheduledWriteMessages | public void setScheduledWriteMessages(int messages)(Code) | | |
setService | public void setService(IoService service)(Code) | | Sets the
IoService which provides I/O service to this session.
|
updateThroughput | public void updateThroughput(boolean force)(Code) | | Update all statistical properties related with throughput. By default
this method returns silently without updating the throughput properties
if they were calculated already within last
IoSessionConfig.getThroughputCalculationInterval calculation interval .
If, however, force is specified as true, this method
updates the throughput properties immediately.
|
Methods inherited from org.apache.mina.common.AbstractIoSession | final public CloseFuture close(boolean rightNow)(Code)(Java Doc) final public CloseFuture close()(Code)(Java Doc) final public CloseFuture closeOnFlush()(Code)(Java Doc) final public boolean containsAttribute(Object key)(Code)(Java Doc) final protected void decreaseReadBufferSize()(Code)(Java Doc) final protected void decreaseScheduledBytesAndMessages(WriteRequest request)(Code)(Java Doc) final public boolean equals(Object o)(Code)(Java Doc) final public Object getAttachment()(Code)(Java Doc) final public Object getAttribute(Object key)(Code)(Java Doc) final public Object getAttribute(Object key, Object defaultValue)(Code)(Java Doc) final public Set<Object> getAttributeKeys()(Code)(Java Doc) final protected IoSessionAttributeMap getAttributeMap()(Code)(Java Doc) final public int getBothIdleCount()(Code)(Java Doc) final public CloseFuture getCloseFuture()(Code)(Java Doc) final public long getCreationTime()(Code)(Java Doc) final protected WriteRequest getCurrentWriteRequest()(Code)(Java Doc) final public long getId()(Code)(Java Doc) final public int getIdleCount(IdleStatus status)(Code)(Java Doc) final public long getLastBothIdleTime()(Code)(Java Doc) final public long getLastIdleTime(IdleStatus status)(Code)(Java Doc) final public long getLastIoTime()(Code)(Java Doc) final public long getLastReadTime()(Code)(Java Doc) final public long getLastReaderIdleTime()(Code)(Java Doc) final public long getLastWriteTime()(Code)(Java Doc) final public long getLastWriterIdleTime()(Code)(Java Doc) abstract protected IoProcessor getProcessor()(Code)(Java Doc) final public long getReadBytes()(Code)(Java Doc) final public double getReadBytesThroughput()(Code)(Java Doc) final public long getReadMessages()(Code)(Java Doc) final public double getReadMessagesThroughput()(Code)(Java Doc) final public int getReaderIdleCount()(Code)(Java Doc) final public long getScheduledWriteBytes()(Code)(Java Doc) final public int getScheduledWriteMessages()(Code)(Java Doc) public SocketAddress getServiceAddress()(Code)(Java Doc) final public TrafficMask getTrafficMask()(Code)(Java Doc) final protected WriteRequestQueue getWriteRequestQueue()(Code)(Java Doc) final public int getWriterIdleCount()(Code)(Java Doc) final public long getWrittenBytes()(Code)(Java Doc) final public double getWrittenBytesThroughput()(Code)(Java Doc) final public long getWrittenMessages()(Code)(Java Doc) final public double getWrittenMessagesThroughput()(Code)(Java Doc) final public int hashCode()(Code)(Java Doc) final protected void increaseIdleCount(IdleStatus status, long currentTime)(Code)(Java Doc) final protected void increaseReadBufferSize()(Code)(Java Doc) final protected void increaseReadBytes(long increment, long currentTime)(Code)(Java Doc) final protected void increaseReadMessages(long currentTime)(Code)(Java Doc) final protected void increaseScheduledWriteBytes(long increment)(Code)(Java Doc) final protected void increaseScheduledWriteMessages()(Code)(Java Doc) final protected void increaseWrittenBytesAndMessages(WriteRequest request, long currentTime)(Code)(Java Doc) final public boolean isBothIdle()(Code)(Java Doc) final public boolean isClosing()(Code)(Java Doc) final public boolean isConnected()(Code)(Java Doc) final public boolean isIdle(IdleStatus status)(Code)(Java Doc) final public boolean isReaderIdle()(Code)(Java Doc) final protected boolean isScheduledForFlush()(Code)(Java Doc) final public boolean isWriterIdle()(Code)(Java Doc) final protected void offerClosedReadFuture()(Code)(Java Doc) final protected void offerFailedReadFuture(Throwable exception)(Code)(Java Doc) final protected void offerReadFuture(Object message)(Code)(Java Doc) final public ReadFuture read()(Code)(Java Doc) final public Object removeAttribute(Object key)(Code)(Java Doc) final public boolean removeAttribute(Object key, Object value)(Code)(Java Doc) final public boolean replaceAttribute(Object key, Object oldValue, Object newValue)(Code)(Java Doc) final public void resumeRead()(Code)(Java Doc) final public void resumeWrite()(Code)(Java Doc) final public Object setAttachment(Object attachment)(Code)(Java Doc) final public Object setAttribute(Object key, Object value)(Code)(Java Doc) final public Object setAttribute(Object key)(Code)(Java Doc) final public Object setAttributeIfAbsent(Object key, Object value)(Code)(Java Doc) final public Object setAttributeIfAbsent(Object key)(Code)(Java Doc) final protected void setAttributeMap(IoSessionAttributeMap attributes)(Code)(Java Doc) final protected void setCurrentWriteRequest(WriteRequest currentWriteRequest)(Code)(Java Doc) final protected boolean setScheduledForFlush(boolean flag)(Code)(Java Doc) protected void setScheduledWriteBytes(long byteCount)(Code)(Java Doc) protected void setScheduledWriteMessages(int messages)(Code)(Java Doc) final public void setTrafficMask(TrafficMask trafficMask)(Code)(Java Doc) final protected void setTrafficMaskNow(TrafficMask trafficMask)(Code)(Java Doc) final protected void setWriteRequestQueue(WriteRequestQueue writeRequestQueue)(Code)(Java Doc) final public void suspendRead()(Code)(Java Doc) final public void suspendWrite()(Code)(Java Doc) public String toString()(Code)(Java Doc) final protected void updateThroughput(long currentTime, boolean force)(Code)(Java Doc) final public WriteFuture write(Object message)(Code)(Java Doc) final public WriteFuture write(Object message, SocketAddress remoteAddress)(Code)(Java Doc)
|
|
|
|