|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.cometd.DataHandler
public class DataHandler
CometHandler used to support the meta channel Verb Connect and Reconnect. The DataHandler is holding the state of the long polled (Comet) connection.
| Constructor Summary | |
|---|---|
DataHandler()
|
|
| Method Summary | |
|---|---|
void |
attach(Object[] reqRes)
Attach an intance of E to this class. |
String |
getChannel()
|
String |
getClientId()
|
void |
onEvent(CometEvent event)
Receive CometEvent notification. |
void |
onInitialize(CometEvent event)
Receive CometEvent notification when the underlying
tcp communication is started by the client |
void |
onInterrupt(CometEvent event)
Receive CometEvent notification when the underlying
tcp communication is resumed by the Grizzly ARP. |
void |
onTerminate(CometEvent event)
Receive CometEvent notification when the underlying
tcp communication is closed by the CometHandler |
void |
setChannel(String channel)
|
void |
setClientId(String clientId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataHandler()
| Method Detail |
|---|
public void attach(Object[] reqRes)
CometHandler
attach in interface CometHandler<Object[]>
public void onEvent(CometEvent event)
throws IOException
CometHandlerCometEvent notification.
onEvent in interface CometHandler<Object[]>IOException
public void onInitialize(CometEvent event)
throws IOException
CometHandlerCometEvent notification when the underlying
tcp communication is started by the client
onInitialize in interface CometHandler<Object[]>IOException
public void onTerminate(CometEvent event)
throws IOException
CometHandlerCometEvent notification when the underlying
tcp communication is closed by the CometHandler
onTerminate in interface CometHandler<Object[]>IOException
public void onInterrupt(CometEvent event)
throws IOException
CometHandlerCometEvent notification when the underlying
tcp communication is resumed by the Grizzly ARP.
onInterrupt in interface CometHandler<Object[]>IOExceptionpublic String getChannel()
public void setChannel(String channel)
public String getClientId()
public void setClientId(String clientId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||