Top Description Inners Fields Constructors Methods
org.glassfish.grizzly.strategies

public final Class WorkerThreadIOStrategy

extends AbstractIOStrategy
Class Inheritance
Imports
java.io.IOException, java.util.concurrent.Executor, java.util.logging.Logger, org.glassfish.grizzly.Connection, .Grizzly, .IOEvent, .IOEventLifeCycleListener, .Processor

org.glassfish.grizzly.IOStrategy, which executes Processors in worker thread.
Author
Alexey Stashok

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final WorkerThreadIOStrategy
private static final Logger
Inherited from org.glassfish.grizzly.strategies.AbstractIOStrategy:
ENABLE_INTEREST_LIFECYCLE_LISTENER

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
executeIoEvent(final Connection<L> connection, final IOEvent ioEvent, final boolean isIoEventEnabled)

Implements org.glassfish.grizzly.IOStrategy.executeIoEvent.

The org.glassfish.grizzly.nio.SelectorRunner will invoke this method to allow the strategy implementation to decide how the IOEvent will be handled.

public static WorkerThreadIOStrategy
private static void
run0(final Connection<L> connection, final IOEvent ioEvent, final IOEventLifeCycleListener lifeCycleListener)

Inherited from org.glassfish.grizzly.strategies.AbstractIOStrategy:
createDefaultWorkerPoolConfigexecuteIoEventfireIOEventgetThreadPoolForisReadWrite

Field Detail

INSTANCEback to summary
private static final WorkerThreadIOStrategy INSTANCE
loggerback to summary
private static final Logger logger

Constructor Detail

WorkerThreadIOStrategyback to summary
private WorkerThreadIOStrategy()

Method Detail

executeIoEventback to summary
public boolean executeIoEvent(final Connection<L> connection, final IOEvent ioEvent, final boolean isIoEventEnabled) throws IOException

Implements org.glassfish.grizzly.IOStrategy.executeIoEvent.

Doc from org.glassfish.grizzly.IOStrategy.executeIoEvent.

The org.glassfish.grizzly.nio.SelectorRunner will invoke this method to allow the strategy implementation to decide how the IOEvent will be handled.

Annotations
@Override
Exceptions
IOException:
if an error occurs processing the IOEvent.
getInstanceback to summary
public static WorkerThreadIOStrategy getInstance()
run0back to summary
private static void run0(final Connection<L> connection, final IOEvent ioEvent, final IOEventLifeCycleListener lifeCycleListener)
org.glassfish.grizzly.strategies back to summary

private final Class WorkerThreadIOStrategy.WorkerThreadRunnable

extends Object
implements Runnable
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.WorkerThreadRunnable
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
pack-priv final Connection<L>
pack-priv final IOEvent
pack-priv final IOEventLifeCycleListener

Constructor Summary

AccessConstructor and Description
private
WorkerThreadRunnable(final Connection<L> connection, final IOEvent ioEvent, final IOEventLifeCycleListener lifeCycleListener)

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
pack-priv final Connection<L> connection
ioEventback to summary
pack-priv final IOEvent ioEvent
lifeCycleListenerback to summary
pack-priv final IOEventLifeCycleListener lifeCycleListener

Constructor Detail

WorkerThreadRunnableback to summary
private WorkerThreadRunnable(final Connection<L> connection, final IOEvent ioEvent, final IOEventLifeCycleListener lifeCycleListener)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override