Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.genID
Generates an ID. T
This method has three variants, one of which is deprecated:
- genID (Variant 1) generates an ID that is safe within a virtual machine, but is not guaranteed cluster safe.
- genID (Variant 2) generates an ID that is cluster safe.
- genID (Deprecated) has been replaced by genID (Variant 2) .
Utilities.genID
Generates a unique number based on the current time.
Syntax
public static final String genID()Description
The
genID
method generates a unique number based on the current time.This method is safe within the virtual machine. The ID is not guaranteed to be unique across several virtual machines.
Returns
Returns the string containing the number, or null on error.
Utilities.genID
Use this method to generate a unique number based on the current time. This version of
genID()
is cluster safe.Syntax
public static final String genID(boolean bClusterSafe )Parameters
bClusterSafe
- A value of
true
generates an ID that is cluster safe.
Returns
Returns the string containing the number, or null on error.
Utilities.genID
Deprecated. As of version 4.0, use genID (Variant 2) .
Syntax
public static final String genID(ICS icsThread)Parameters
icsThread
- Input. Specify an interface object to synchronize this number across virtual machines and/or the cluster.
Description
The
genID
method generates a unique number based on the current time.Returns
Returns the string containing the number, or null on error.
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.