org.idevlab.rjc.message
Interface SubscribeListener


public interface SubscribeListener

Author:
Evgeny Dolgov

Method Summary
 void onPSubscribe(String pattern, long subscribedChannels)
          Means that we successfully subscribed to the given pattern
 void onPUnsubscribe(String pattern, long subscribedChannels)
          Means that we successfully unsubscribed from the given pattern
 void onSubscribe(String channel, long subscribedChannels)
          Means that we successfully subscribed to the given channel *
 void onUnsubscribe(String channel, long subscribedChannels)
          Means that we successfully unsubscribed from the given channel
 

Method Detail

onSubscribe

void onSubscribe(String channel,
                 long subscribedChannels)
Means that we successfully subscribed to the given channel *

Parameters:
channel - subscribed channel
subscribedChannels - the number of channels we are currently subscribed to

onUnsubscribe

void onUnsubscribe(String channel,
                   long subscribedChannels)
Means that we successfully unsubscribed from the given channel

Parameters:
channel - unsubscribed channel
subscribedChannels - the number of channels we are currently subscribed to

onPSubscribe

void onPSubscribe(String pattern,
                  long subscribedChannels)
Means that we successfully subscribed to the given pattern

Parameters:
pattern - subscribed pattern
subscribedChannels - the number of channels we are currently subscribed to

onPUnsubscribe

void onPUnsubscribe(String pattern,
                    long subscribedChannels)
Means that we successfully unsubscribed from the given pattern

Parameters:
pattern - unsubscribed pattern
subscribedChannels - the number of channels we are currently subscribed to


Copyright © 2011. All Rights Reserved.