com.unclouded.android
Class ServiceSubscription

java.lang.Object
  extended by com.unclouded.android.ServiceSubscription

public class ServiceSubscription
extends Object

Enables to manage a service subscription.

A ServiceSubscription instance is returned as the result of invoking the when or whenever method on the Unclouded event loop.
It enables to cancel the service subscription at some later point in time.


Constructor Summary
ServiceSubscription()
           
 
Method Summary
 void cancel()
          Cancel the corresponding service subscription.
 String toString()
          Returns a string representation of a ServiceSubscription object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceSubscription

public ServiceSubscription()
Method Detail

cancel

public void cancel()
Cancel the corresponding service subscription. This implies that no notifications are triggered anymore for the service(s) that was(were) discovered by this subscription.


toString

public String toString()
Returns a string representation of a ServiceSubscription object.

Overrides:
toString in class Object
Returns:
a string representation of the service subscription.