Package org.ros.master.uri
Class StaticMasterUriProvider
java.lang.Object
org.ros.master.uri.StaticMasterUriProvider
- All Implemented Interfaces:
MasterUriProvider
A
MasterUriProvider which will always return the same URI.- Author:
- Keith M. Hughes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a master URI.getMasterUri(long timeout, TimeUnit unit) Get a master URI within a given amount of time.
-
Constructor Details
-
StaticMasterUriProvider
-
-
Method Details
-
getMasterUri
Description copied from interface:MasterUriProviderGet a master URI.There is no guarantee that calling this class twice will provide the same URI.
This call may or may not block until a URI is available.
- Specified by:
getMasterUriin interfaceMasterUriProvider- Returns:
- a master URI
-
getMasterUri
Description copied from interface:MasterUriProviderGet a master URI within a given amount of time.There is no guarantee that calling this class twice will provide the same URI.
This call may or may not block until a URI is available.
- Specified by:
getMasterUriin interfaceMasterUriProvider- Parameters:
timeout- the amount of time to wait for a URIunit- the time unit for the wait time- Returns:
- a master URI or
nullif none could be obtained within the timeout
-