|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.util.BaseThreadPool org.apache.mina.io.filter.IoThreadPoolFilter
public class IoThreadPoolFilter
A Thread-pooling filter. This filter forwards IoHandler
events
to its thread pool.
ThreadPool
,
BaseThreadPool
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.mina.util.BaseThreadPool |
---|
BaseThreadPool.SessionBuffer |
Nested classes/interfaces inherited from interface org.apache.mina.io.IoFilter |
---|
IoFilter.NextFilter |
Field Summary |
---|
Fields inherited from class org.apache.mina.util.BaseThreadPool |
---|
DEFAULT_KEEP_ALIVE_TIME, DEFAULT_MAXIMUM_POOL_SIZE |
Constructor Summary | |
---|---|
IoThreadPoolFilter()
Creates a new instance of this filter with default thread pool settings. |
|
IoThreadPoolFilter(String threadNamePrefix)
Creates a new instance of this filter with default thread pool settings. |
Methods inherited from class org.apache.mina.util.BaseThreadPool |
---|
fetchSessionBuffer, fireEvent, getKeepAliveTime, getMaximumPoolSize, getPoolSize, getThreadNamePrefix, setKeepAliveTime, setMaximumPoolSize, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mina.util.ThreadPool |
---|
getKeepAliveTime, getMaximumPoolSize, getPoolSize, setKeepAliveTime, setMaximumPoolSize, start, stop |
Constructor Detail |
---|
public IoThreadPoolFilter()
BaseThreadPool.start()
method to start threads actually.
public IoThreadPoolFilter(String threadNamePrefix)
BaseThreadPool.start()
method to start threads actually.
threadNamePrefix
- the prefix of the thread names this pool will create.Method Detail |
---|
public void sessionOpened(IoFilter.NextFilter nextFilter, IoSession session)
IoFilter
IoHandler.sessionOpened(IoSession)
event.
sessionOpened
in interface IoFilter
public void sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)
IoFilter
IoHandler.sessionClosed(IoSession)
event.
sessionClosed
in interface IoFilter
public void sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status)
IoFilter
IoHandler.sessionIdle(IoSession, IdleStatus)
event.
sessionIdle
in interface IoFilter
public void exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause)
IoFilter
IoHandler.exceptionCaught(IoSession, Throwable)
event.
exceptionCaught
in interface IoFilter
public void dataRead(IoFilter.NextFilter nextFilter, IoSession session, ByteBuffer buf)
IoFilter
IoHandler.dataRead(IoSession, ByteBuffer)
event.
dataRead
in interface IoFilter
public void dataWritten(IoFilter.NextFilter nextFilter, IoSession session, Object marker)
IoFilter
IoHandler.dataWritten(IoSession, Object)
event.
dataWritten
in interface IoFilter
protected void processEvent(Object nextFilter0, Session session0, EventType type, Object data)
BaseThreadPool
processEvent
in class BaseThreadPool
public void filterWrite(IoFilter.NextFilter nextFilter, IoSession session, ByteBuffer buf, Object marker) throws Exception
IoFilter
IoSession.write(ByteBuffer, Object)
method invocation.
filterWrite
in interface IoFilter
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |