Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Improve documentation for AbstractDiscoveryService (#6342)
Browse files Browse the repository at this point in the history
Signed-off-by: David Graeff <david.graeff@web.de>
  • Loading branch information
David Gräff authored and htreu committed Oct 10, 2018
1 parent 87e20cc commit 53e19ba
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -106,11 +106,12 @@ public AbstractDiscoveryService(@Nullable Set<ThingTypeUID> supportedThingTypes,
}

/**
* Creates a new instance of this class with the specified parameters.
* Creates a new instance of this class with the specified parameters and background discovery enabled.
*
* @param supportedThingTypes the list of Thing types which are supported (can be null)
* @param timeout the discovery timeout in seconds after which the discovery service
* automatically stops its forced discovery process (>= 0).
* If set to 0, disables the automatic stop.
* @throws IllegalArgumentException if the timeout < 0
*/
public AbstractDiscoveryService(@Nullable Set<ThingTypeUID> supportedThingTypes, int timeout)
Expand All @@ -119,10 +120,11 @@ public AbstractDiscoveryService(@Nullable Set<ThingTypeUID> supportedThingTypes,
}

/**
* Creates a new instance of this class with the specified parameters.
* Creates a new instance of this class with the specified parameters and background discovery enabled.
*
* @param timeout the discovery timeout in seconds after which the discovery service
* automatically stops its forced discovery process (>= 0).
* If set to 0, disables the automatic stop.
* @throws IllegalArgumentException if the timeout < 0
*/
public AbstractDiscoveryService(int timeout) throws IllegalArgumentException {
Expand Down

0 comments on commit 53e19ba

Please sign in to comment.