Class ServicePublication

  extended by

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
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


public ServicePublication()
Method Detail


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.


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

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