|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.util.SelectionKeyAttachment
com.sun.grizzly.util.SelectedKeyAttachmentLogic
com.sun.grizzly.comet.CometTask
com.sun.enterprise.web.connector.grizzly.comet.CometTask
@Deprecated public class CometTask
A Task
implementation that allow Grizzly ARP to invokeCometHandler
CometHandler
when new data (bytes) are available from the
CometSelector
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.grizzly.util.SelectionKeyAttachment |
---|
SelectionKeyAttachment.KeySelectionListener, SelectionKeyAttachment.TimeOutListener |
Field Summary | |
---|---|
protected boolean |
callInterrupt
Deprecated. true if run() should call comet context.interrupt0 |
protected CometContext |
cometContext
Deprecated. The CometContext associated with this instance. |
protected CometHandler |
cometHandler
Deprecated. The CometHandler associated with this task. |
protected boolean |
interruptFlushAPT
Deprecated. true if interrupt should flushAPT |
Fields inherited from class com.sun.grizzly.comet.CometTask |
---|
asyncProcessorTask, cometHandlerIsAsyncRegistered, upcoming_op_isread |
Fields inherited from class com.sun.grizzly.util.SelectionKeyAttachment |
---|
DEREGISTERED, idleTimeoutDelay, keySelectionListener, timeout, timeoutListener, UNLIMITED_TIMEOUT |
Constructor Summary | |
---|---|
CometTask(CometContext cometContext,
CometHandler cometHandler)
Deprecated. New CometTask . |
Method Summary | |
---|---|
CometContext |
getCometContext()
Deprecated. Return the CometContext associated with this instance. |
CometHandler |
getCometHandler()
Deprecated. returns the CometHandler |
long |
getIdleTimeoutDelay()
Deprecated. Returns the idle timeout delay. |
boolean |
handleSelectedKey(SelectionKey selectionKey)
Deprecated. Used for completely custom selector.select logic. |
void |
release(SelectionKey selectionKey)
Deprecated. this should never be called for for comet, due to we are nulling the attachment and completely overriding the selector.select logic. called by grizzly when the selection key is canceled and its socket closed. |
void |
run()
Deprecated. performs doTask() or cometContext.interrupt0 |
boolean |
timedOut(SelectionKey key)
Deprecated. called when idle timeout detected. |
Methods inherited from class com.sun.grizzly.comet.CometTask |
---|
doTask, getAsyncProcessorTask, getSelectionKey, isComethandlerAsyncRegistered, setAsyncProcessorTask, setComethandlerIsAsyncRegistered |
Methods inherited from class com.sun.grizzly.util.SelectionKeyAttachment |
---|
getAttachment, getKeySelectionListener, getTimeout, getTimeoutListener, setIdleTimeoutDelay, setKeySelectionListener, setTimeout, setTimeoutListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final CometContext cometContext
CometContext
associated with this instance.
protected final CometHandler cometHandler
CometHandler
associated with this task.
protected boolean callInterrupt
protected boolean interruptFlushAPT
Constructor Detail |
---|
public CometTask(CometContext cometContext, CometHandler cometHandler)
CometTask
.
Method Detail |
---|
public void run()
run
in interface Runnable
run
in class CometTask
public long getIdleTimeoutDelay()
getIdleTimeoutDelay
in class CometTask
public void release(SelectionKey selectionKey)
release
in class CometTask
selectionKey
- public boolean timedOut(SelectionKey key)
timedOut
in class CometTask
public boolean handleSelectedKey(SelectionKey selectionKey)
handleSelectedKey
in class CometTask
public CometContext getCometContext()
CometContext
associated with this instance.
getCometContext
in class CometTask
CometContext
associated with this
instance.public CometHandler getCometHandler()
CometHandler
getCometHandler
in class CometTask
CometHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |