com.unclouded.android
Class ServicePublication

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

public class ServicePublication
extends Object

Enables to manage a service publication.

A ServicePublication instance is returned as the result of broadcasting a service by invoking the broadcast method on the Unclouded event loop.
It enables to cancel the service publication at some later point in time.


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

Constructor Detail

ServicePublication

public ServicePublication()
Method Detail

cancel

public void cancel()
Cancel the corresponding service publication.

This cause the service to disconnect from the network: devices that have discovered this service before, trigger a isDisconnected notification; other devices are not able to discover the service anymore.


toString

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

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