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
 void addChannel(String channel)
           
 Collection<String> getChannels()
           
 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)
           
 boolean removeChannel(String channel)
           
 
Methods inherited from interface com.sun.enterprise.web.connector.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

getChannels

Collection<String> getChannels()

addChannel

void addChannel(String channel)

removeChannel

boolean removeChannel(String channel)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.