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

 

ISynchHash.clear

Clears a hash and synchronizes the cluster.

Syntax

Description

The clear method clears a hash and synchronizes the cluster as necessary.

Note that it is more efficient to use the clear method to remove a hash then to remove all entries one by one. When removing entries one-by-one, although the first iteration of the loop has little performance cost, subsequent iterations have the additional performance cost of cluster synchronization, which can be very high.

 

  Home > Contents > Index >

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