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

public final Class LeaderFollowerNIOStrategy

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

org.glassfish.grizzly.IOStrategy, which executes org.glassfish.grizzly.Processors in a current threads, and resumes selector thread logic in separate thread.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private static final LeaderFollowerNIOStrategy
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 LeaderFollowerNIOStrategy
Inherited from org.glassfish.grizzly.strategies.AbstractIOStrategy:
createDefaultWorkerPoolConfigexecuteIoEventfireIOEventgetThreadPoolForisReadWrite

Field Detail

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

Constructor Detail

LeaderFollowerNIOStrategyback to summary
private LeaderFollowerNIOStrategy()

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 LeaderFollowerNIOStrategy getInstance()