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:


Utilities.genID

Generates a unique number based on the current time.

Syntax

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

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

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.