|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.master.uri.StaticMasterUriProvider
public class StaticMasterUriProvider
A MasterUriProvider
which will always return the same URI.
Constructor Summary | |
---|---|
StaticMasterUriProvider(java.net.URI uri)
|
Method Summary | |
---|---|
java.net.URI |
getMasterUri()
Get a master URI. |
java.net.URI |
getMasterUri(long timeout,
java.util.concurrent.TimeUnit unit)
Get a master URI within a given amount of time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticMasterUriProvider(java.net.URI uri)
Method Detail |
---|
public java.net.URI getMasterUri()
MasterUriProvider
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.
getMasterUri
in interface MasterUriProvider
public java.net.URI getMasterUri(long timeout, java.util.concurrent.TimeUnit unit)
MasterUriProvider
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.
getMasterUri
in interface MasterUriProvider
timeout
- the amount of time to wait for a URIunit
- the time unit for the wait time
null
if none could be obtained within the
timeout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |