Skip navigation

Integrations - Auto-Locked Collections

Article Rating?

Product Type Java Language
Versions Supported Not Applicable
Module Status Forge download
Module Availability - Released (latest) See Terracotta Forge Releases
Module Availability - SNAPSHOT (latest) See Terracotta Forge Snapshots
Download with Kit Not Applicable

Introduction

The purpose of this Terracotta integration module (TIM) is to enable cluster autolocking on certain Java synchronized collections. This TIM is actually a set of several individual TIMs aimed at integrating synchronized collections. It includes Hashtable , Vector , and synchronized wrapper collections returned by the Collections.synchronized*() methods.

Dependencies

None.

Usage

After you download and unpack the synchronized Java collection TIMs into the Terracotta modules directory, add the following to your tc-config.xml:

<clients>
   <modules>
      <module name="tim-hashtable" version="2.2.0" group-id="org.terracotta.modules"/>
      <module name="tim-synchronizedcollection" version="2.2.0" group-id="org.terracotta.modules"/>
      <module name="tim-synchronizedmap" version="2.2.0" group-id="org.terracotta.modules"/>
      <module name="tim-synchronizedset" version="2.2.0" group-id="org.terracotta.modules"/>
      <module name="tim-synchronizedsortedmap" version="2.2.0" group-id="org.terracotta.modules"/>
      <module name="tim-synchronizedsortedset" version="2.2.0" group-id="org.terracotta.modules"/>
      <module name="tim-vector" version="2.2.0" group-id="org.terracotta.modules"/>
   </modules>
</clients>

The <module> elements shown are configured for TIMs installed in the <TC_HOME>/modules/org/terracotta/modules directory. For information on installing TIMs in other directories, see the Configuration Guide and Reference.

To avoid using a synchronized Java collection TIM, do not enter a <module> element for it in tc-config.xml.

Known Issues

None.

Adaptavist Theme Builder Powered by Atlassian Confluence