Package com.amazonaws.xray.internal
Class SecureIdGenerator
- java.lang.Object
-
- com.amazonaws.xray.internal.IdGenerator
-
- com.amazonaws.xray.internal.SecureIdGenerator
-
public final class SecureIdGenerator extends IdGenerator
Generates for IDs using a cryptographically secure random number generator. This can be much more expensive than the alternative FastIdGenerator. This generator should only be used if your application relies on AWS X-Ray IDs being generated from a cryptographically secure random number source.This class is internal-only and its API may receive breaking changes at any time. Do not directly depend on or use this class.
- See Also:
FastIdGenerator
-
-
Constructor Summary
Constructors Constructor Description SecureIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
getRandomEntityId()
java.lang.String
newTraceId()
-
Methods inherited from class com.amazonaws.xray.internal.IdGenerator
newEntityId
-
-
-
-
Method Detail
-
newTraceId
public java.lang.String newTraceId()
- Specified by:
newTraceId
in classIdGenerator
- Returns:
- a new ID suitable for use in a
TraceID
-
getRandomEntityId
protected long getRandomEntityId()
- Specified by:
getRandomEntityId
in classIdGenerator
- Returns:
- a random long to use as an entity ID
-
-