Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.GetSynchronizedHash
Locates or creates a named synchronized hash.
Syntax
public ISyncHash GetSynchronizedHash(String name, boolean bCreate, int timeout, int size, boolean bAbsolute, boolean bClusterSync)Parameters
name
- Hashname
bCreate
- If
true
and hash is not found, the hash is created using the following parameters. The existing hash is always returned if found.
timeout
- Time, in minutes.
size
- Size of entries.
bAbsolute
- Timeout vs. idle
bClusterSync
- Synchronize over cluster
Description
The
GetSynchronizedHash
method locates or creates a named synchronized hash. The hash name is global across Sites applications.Returns
Object handle or
null
. Theerrno
is cleared, or set if there is an error. Creating a hash with a size less than 1 will return an error.Example
The following example creates a synchronized hash:
ics.ClearErrno(); ics.GetSynchronizedHash("myHash", true, 5, 10, true, false); int hashErr = ics.GetErrno
();See Also
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.