|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSelectorThread
org.mortbay.jetty.grizzly.JettySelectorThread
public class JettySelectorThread
Extend the default Grizzly implementation to allow the customization of
Task
used by the Jetty back-end
Constructor Summary | |
---|---|
JettySelectorThread()
|
Method Summary | |
---|---|
void |
enableSelectionKeys()
Enable all registered interestOps. |
protected void |
expireIdleKeys()
Cancel keep-alive connections. |
GrizzlyConnector |
getGrizzlyConnector()
|
ReadTask |
getReadTask()
|
protected void |
initAlgorithm()
Force Grizzly to use the JettyStreamAlgorithm
implementation by default. |
protected void |
initMultiSelectors()
Initialize JeetySelectorReadThread used to process
OP_READ operations. |
boolean |
isUseTemporarySelector()
|
protected Pipeline |
newPipeline(int maxThreads,
int minThreads,
String name,
int port,
int priority)
Create a new Pipeline instance using the
pipelineClassName value. |
ProcessorTask |
newProcessorTask(boolean initialize)
Return a JettyProcessorTask implementation. |
protected ReadTask |
newReadTask()
Return a new JettyReadTask instance |
void |
setGrizzlyConnector(GrizzlyConnector grizzlyConnector)
|
void |
setThreadPool(ThreadPool threadPool)
|
void |
setUseTemporarySelector(boolean useTemporarySelector)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettySelectorThread()
Method Detail |
---|
protected void initMultiSelectors() throws IOException, InstantiationException
JeetySelectorReadThread
used to process
OP_READ operations.
IOException
InstantiationException
protected void initAlgorithm()
JettyStreamAlgorithm
implementation by default.
protected Pipeline newPipeline(int maxThreads, int minThreads, String name, int port, int priority)
Pipeline
instance using the
pipelineClassName
value. If the pipeline is an instance of
JettyPipeline
, use the Jetty thread pool implementation
(wrapped inside a Pipeline).
public ProcessorTask newProcessorTask(boolean initialize)
JettyProcessorTask
implementation.
public void enableSelectionKeys()
protected void expireIdleKeys()
protected ReadTask newReadTask()
JettyReadTask
instance
public ReadTask getReadTask() throws IOException
IOException
public void setGrizzlyConnector(GrizzlyConnector grizzlyConnector)
public GrizzlyConnector getGrizzlyConnector()
public void setThreadPool(ThreadPool threadPool)
public boolean isUseTemporarySelector()
public void setUseTemporarySelector(boolean useTemporarySelector)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |