public class UUIDManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UUIDManager.FetcherMode
The fetcher-mode describes how the
UUIDManager resolves UUIDs. |
| Constructor and Description |
|---|
UUIDManager() |
| Modifier and Type | Method and Description |
|---|---|
static UUIDManager |
get()
Get the uuid manager.
|
String |
getInitialUUID(String name)
Initially request the uuid bypassing the cache.
If request succeeds the uuid will be automatically entered into the cache. |
UUIDManager.FetcherMode |
getMode()
Get the
UUIDManager.FetcherMode which is used. |
String |
getNameFromUUID(String uuid,
boolean forceInitial)
Get name from an uuid.
|
String |
getUUID(String name)
Get the uuid to a name.
|
void |
setup()
Initially setup the uuid manager by determening which
UUIDManager.FetcherMode should be used
based on the configured preference and the servers capabilities. |
public static UUIDManager get()
public void setup()
UUIDManager.FetcherMode should be used
based on the configured preference and the servers capabilities.public String getInitialUUID(String name)
name - the namepublic String getUUID(String name)
name - the namepublic String getNameFromUUID(String uuid, boolean forceInitial)
uuid - the uuidforceInitial - whether to bypass the cachepublic UUIDManager.FetcherMode getMode()
UUIDManager.FetcherMode which is used.Copyright © 2020. All rights reserved.