|
|||||||||
| 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. |
boolean |
handleSelectedKey(SelectionKey selectionKey)
Deprecated. |
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. |
| 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 Runnablerun in class CometTaskpublic long getIdleTimeoutDelay()
getIdleTimeoutDelay in class CometTaskpublic void release(SelectionKey selectionKey)
release in class CometTaskselectionKey - public boolean timedOut(SelectionKey key)
timedOut in class CometTaskpublic boolean handleSelectedKey(SelectionKey selectionKey)
handleSelectedKey in class CometTaskpublic CometContext getCometContext()
CometContext associated with this instance.
getCometContext in class CometTaskCometContext associated with this
instance.public CometHandler getCometHandler()
CometHandler
getCometHandler in class CometTaskCometHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||