EndpointDiscoveryCallback

public abstract classEndpointDiscoveryCallbackextendsObject

Listener invoked during endpoint discovery.

Public Constructor Summary

Public Method Summary

abstract void
onEndpointFound(StringendpointId, DiscoveredEndpointInfoinfo)
Called when a remote endpoint is discovered.
abstract void
onEndpointLost(StringendpointId)
Called when a remote endpoint is no longer discoverable; only called for endpoints that previously had been passed to onEndpointFound(String, DiscoveredEndpointInfo).

Inherited Method Summary

Public Constructors

publicEndpointDiscoveryCallback()

Public Methods

public abstract voidonEndpointFound(StringendpointId,DiscoveredEndpointInfo info)

Called when a remote endpoint is discovered.

Parameters
endpointId The ID of the remote endpoint that was discovered.
info Additional information about the endpoint.

public abstract voidonEndpointLost(String endpointId)

Called when a remote endpoint is no longer discoverable; only called for endpoints that previously had been passed to onEndpointFound(String, DiscoveredEndpointInfo).

Parameters
endpointId The ID of the remote endpoint that was lost.