com.sun.grizzly.cometd
Interface CometdHandler

All Superinterfaces:
CometHandler
All Known Implementing Classes:
BayeuxCometHandler, BayeuxCometHandlerBase

public interface CometdHandler
extends CometHandler

Specialized CometHandler interface that add support to Cometd Verbs event.

Author:
Jeanfrancois Arcand

Method Summary
 String getChannel()
           
 void onConnect(CometEvent event)
           
 void onDisconnect(CometEvent event)
           
 void onHandshake(CometEvent event)
           
 void onPing(CometEvent event)
           
 void onPublish(CometEvent event)
           
 void onReconnect(CometEvent event)
           
 void onStatus(CometEvent event)
           
 void onSubscribe(CometEvent event)
           
 void onUnsubscribe(CometEvent event)
           
 void setChannel(String channel)
           
 
Methods inherited from interface com.sun.grizzly.comet.CometHandler
attach, onEvent, onInitialize, onInterrupt, onTerminate
 

Method Detail

onHandshake

void onHandshake(CometEvent event)
                 throws IOException
Throws:
IOException

onConnect

void onConnect(CometEvent event)
               throws IOException
Throws:
IOException

onDisconnect

void onDisconnect(CometEvent event)
                  throws IOException
Throws:
IOException

onPing

void onPing(CometEvent event)
            throws IOException
Throws:
IOException

onStatus

void onStatus(CometEvent event)
              throws IOException
Throws:
IOException

onReconnect

void onReconnect(CometEvent event)
                 throws IOException
Throws:
IOException

onSubscribe

void onSubscribe(CometEvent event)
                 throws IOException
Throws:
IOException

onUnsubscribe

void onUnsubscribe(CometEvent event)
                   throws IOException
Throws:
IOException

onPublish

void onPublish(CometEvent event)
               throws IOException
Throws:
IOException

getChannel

String getChannel()

setChannel

void setChannel(String channel)


Copyright © 2010 SUN Microsystems. All Rights Reserved.