|
||||||||||
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.protocol.filter.ProtocolThreadPoolFilter
public class ProtocolThreadPoolFilter
A Thread-pooling filter. This filter forwards ProtocolHandler
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.protocol.ProtocolFilter |
---|
ProtocolFilter.NextFilter |
Field Summary |
---|
Fields inherited from class org.apache.mina.util.BaseThreadPool |
---|
DEFAULT_KEEP_ALIVE_TIME, DEFAULT_MAXIMUM_POOL_SIZE |
Constructor Summary | |
---|---|
ProtocolThreadPoolFilter()
Creates a new instanceof this filter with default thread pool settings. |
|
ProtocolThreadPoolFilter(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 ProtocolThreadPoolFilter()
BaseThreadPool.start()
method to start threads actually.
public ProtocolThreadPoolFilter(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(ProtocolFilter.NextFilter nextFilter, ProtocolSession session)
ProtocolFilter
ProtocolHandler.sessionOpened(ProtocolSession)
event.
sessionOpened
in interface ProtocolFilter
public void sessionClosed(ProtocolFilter.NextFilter nextFilter, ProtocolSession session)
ProtocolFilter
ProtocolHandler.sessionClosed(ProtocolSession)
event.
sessionClosed
in interface ProtocolFilter
public void sessionIdle(ProtocolFilter.NextFilter nextFilter, ProtocolSession session, IdleStatus status)
ProtocolFilter
ProtocolHandler.sessionIdle(ProtocolSession,IdleStatus)
event.
sessionIdle
in interface ProtocolFilter
public void exceptionCaught(ProtocolFilter.NextFilter nextFilter, ProtocolSession session, Throwable cause)
ProtocolFilter
ProtocolHandler.exceptionCaught(ProtocolSession,Throwable)
event.
exceptionCaught
in interface ProtocolFilter
public void messageReceived(ProtocolFilter.NextFilter nextFilter, ProtocolSession session, Object message)
ProtocolFilter
ProtocolHandler.messageReceived(ProtocolSession,Object)
event.
messageReceived
in interface ProtocolFilter
public void messageSent(ProtocolFilter.NextFilter nextFilter, ProtocolSession session, Object message)
ProtocolFilter
ProtocolHandler.messageSent(ProtocolSession,Object)
event.
messageSent
in interface ProtocolFilter
protected void processEvent(Object nextFilter0, Session session0, EventType type, Object data)
BaseThreadPool
processEvent
in class BaseThreadPool
public void filterWrite(ProtocolFilter.NextFilter nextFilter, ProtocolSession session, Object message)
ProtocolFilter
ProtocolSession.write(Object)
method invocation.
filterWrite
in interface ProtocolFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |