EndpointDiscoveryCallback

  • EndpointDiscoveryCallback is an abstract class that acts as a listener during endpoint discovery.

  • It includes an abstract method onEndpointFound which is called when a remote endpoint is discovered, providing the endpoint ID and additional information.

  • It also includes an abstract method onEndpointLost which is called when a previously discovered remote endpoint is no longer discoverable, providing the endpoint ID.

public abstract class EndpointDiscoveryCallback extends Object

Listener invoked during endpoint discovery.

Public Constructor Summary

Public Method Summary

abstract void
onEndpointFound(String endpointId, DiscoveredEndpointInfo info)
Called when a remote endpoint is discovered.
abstract void
onEndpointLost(String endpointId)
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

public EndpointDiscoveryCallback ()

Public Methods

public abstract void onEndpointFound (String endpointId, 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 void onEndpointLost (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.