Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.genID

Generates an ID.

This method has two variants, both are deprecated:


Utilities.genID

Deprecated. Replaced by ICS.genId(boolean bclusterSafe) .

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

Deprecated. Replaced by ICS.genId(boolean bclusterSafe) .

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 >

Oracle JAVA Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.