com.crankuptheamps.client
Class DefaultSubscriptionManager

java.lang.Object
  extended by com.crankuptheamps.client.DefaultSubscriptionManager
All Implemented Interfaces:
SubscriptionManager

public class DefaultSubscriptionManager
extends Object
implements SubscriptionManager


Constructor Summary
DefaultSubscriptionManager()
           
 
Method Summary
 void clear()
           
 void resubscribe(Client client)
           
 void subscribe(MessageHandler messageHandler, int command, CommandId subId, String topic, String filter, String bookmark, String options, int batchsize)
           
 void unsubscribe(CommandId subId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSubscriptionManager

public DefaultSubscriptionManager()
Method Detail

subscribe

public void subscribe(MessageHandler messageHandler,
                      int command,
                      CommandId subId,
                      String topic,
                      String filter,
                      String bookmark,
                      String options,
                      int batchsize)
Specified by:
subscribe in interface SubscriptionManager

unsubscribe

public void unsubscribe(CommandId subId)
Specified by:
unsubscribe in interface SubscriptionManager

clear

public void clear()
Specified by:
clear in interface SubscriptionManager

resubscribe

public void resubscribe(Client client)
                 throws AMPSException
Specified by:
resubscribe in interface SubscriptionManager
Throws:
AMPSException