public class StaticMasterUriProvider extends java.lang.Object implements MasterUriProvider
MasterUriProvider which will always return the same URI.| Constructor and Description |
|---|
StaticMasterUriProvider(java.net.URI uri) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.net.URI getMasterUri()
MasterUriProviderThere 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 MasterUriProviderpublic java.net.URI getMasterUri(long timeout,
java.util.concurrent.TimeUnit unit)
MasterUriProviderThere 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 MasterUriProvidertimeout - the amount of time to wait for a URIunit - the time unit for the wait timenull if none could be obtained within the
timeout