| Package | Description |
|---|---|
| org.apache.mina.core.filterchain | |
| org.apache.mina.core.session | |
| org.apache.mina.filter.executor |
IoFilters that provide flexible thread model and event queue
monitoring interface.
|
| org.apache.mina.filter.statistic |
Classes that implement IoFilter and provide the ability for filters to be timed on their performance.
|
| Constructor and Description |
|---|
IoFilterEvent(IoFilter.NextFilter nextFilter,
IoEventType type,
IoSession session,
java.lang.Object parameter) |
| Modifier and Type | Field and Description |
|---|---|
private IoEventType |
IoEvent.type |
| Modifier and Type | Method and Description |
|---|---|
IoEventType |
IoEvent.getType() |
static IoEventType |
IoEventType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IoEventType[] |
IoEventType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
IoEvent(IoEventType type,
IoSession session,
java.lang.Object parameter) |
| Modifier and Type | Field and Description |
|---|---|
private static IoEventType[] |
ExecutorFilter.DEFAULT_EVENT_SET
A list of default EventTypes to be handled by the executor
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.EnumSet<IoEventType> |
ExecutorFilter.eventTypes
The list of handled events
|
| Modifier and Type | Method and Description |
|---|---|
private void |
ExecutorFilter.init(java.util.concurrent.Executor executor,
boolean manageableExecutor,
IoEventType... eventTypes)
Creates a new instance of ExecutorFilter.
|
private void |
ExecutorFilter.initEventTypes(IoEventType... eventTypes)
Create an EnumSet from an array of EventTypes, and set the associated
eventTypes field.
|
| Constructor and Description |
|---|
ExecutorFilter(java.util.concurrent.Executor executor,
IoEventType... eventTypes)
Creates a new instance with the specified
Executor. |
ExecutorFilter(int corePoolSize,
int maximumPoolSize,
IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
ExecutorFilter(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
IoEventQueueHandler queueHandler,
IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
ExecutorFilter(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
ExecutorFilter(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.ThreadFactory threadFactory,
IoEventQueueHandler queueHandler,
IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
ExecutorFilter(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.ThreadFactory threadFactory,
IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
ExecutorFilter(int maximumPoolSize,
IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
ExecutorFilter(IoEventType... eventTypes)
(Convenience constructor) Creates a new instance with a new
OrderedThreadPoolExecutor. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<IoEventType> |
ProfilerTimerFilter.getEventsToProfile()
Return the set of
IoEventType which are profiled. |
| Modifier and Type | Method and Description |
|---|---|
double |
ProfilerTimerFilter.getAverageTime(IoEventType type)
Get the average time for the specified method represented by the
IoEventType |
long |
ProfilerTimerFilter.getMaximumTime(IoEventType type)
The maximum time the method represented by
IoEventType has executed |
long |
ProfilerTimerFilter.getMinimumTime(IoEventType type)
The minimum time the method represented by
IoEventType has executed |
long |
ProfilerTimerFilter.getTotalCalls(IoEventType type)
Gets the total number of times the method has been called that is represented by the
IoEventType |
long |
ProfilerTimerFilter.getTotalTime(IoEventType type)
The total time this method has been executing
|
void |
ProfilerTimerFilter.profile(IoEventType type)
Set the
IoEventType to be profiled |
void |
ProfilerTimerFilter.setEventsToProfile(IoEventType... eventTypes)
Set the profilers for a list of
IoEventType |
private void |
ProfilerTimerFilter.setProfilers(IoEventType... eventTypes)
Create the profilers for a list of
IoEventType. |
void |
ProfilerTimerFilter.stopProfile(IoEventType type)
Stop profiling an
IoEventType |
| Constructor and Description |
|---|
ProfilerTimerFilter(java.util.concurrent.TimeUnit timeUnit,
IoEventType... eventTypes)
Creates a new instance of ProfilerFilter.
|