public interface UniqueIdService extends Service
This service provides unique identifiers for the instance of Turbine, and for objects it creates.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
The service name
|
Modifier and Type | Method and Description |
---|---|
String |
getInstanceId()
Returns an identifier of this Turbine instance that is unique
both on the server and worldwide.
|
String |
getPseudorandomId()
Returns a unique identifier that looks like random data.
|
String |
getUniqueId()
Returns an identifier that is unique within this Turbine
instance, but does not have random-like appearance.
|
getConfiguration, getName, getProperties, setName, setServiceBroker
static final String SERVICE_NAME
String getInstanceId()
Returns an identifier of this Turbine instance that is unique both on the server and worldwide.
String getUniqueId()
Returns an identifier that is unique within this Turbine instance, but does not have random-like appearance.
This method is intended to work fast; it can be used for creating names of temporary files.
String getPseudorandomId()
Returns a unique identifier that looks like random data.
This method provides identifiers in a way that makes it hard to guess or count, but still ensures their uniqueness within this instance of Turbine. It can be used for generating cookies or other data that travels back and forth between server and browser, and is potentially security sensitive.
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.