org.terracotta.toolkit.atomic
Interface ToolkitTransactionController

All Superinterfaces:
org.terracotta.toolkit.ToolkitFeature

public interface ToolkitTransactionController
extends org.terracotta.toolkit.ToolkitFeature

A Controller for ToolkitTransaction.
Write Locks taken inside the toolkit transaction will be released only after the transaction is commited. Accessing multiple locks or Locked Objects inside a transaction should be done in a fixed order in order to avoid deadlocks.


Method Summary
 ToolkitTransaction beginTransaction(ToolkitTransactionType type)
          Creates a ToolkitTransaction.
 
Methods inherited from interface org.terracotta.toolkit.ToolkitFeature
isEnabled
 

Method Detail

beginTransaction

ToolkitTransaction beginTransaction(ToolkitTransactionType type)
Creates a ToolkitTransaction. This transaction will be current transaction up to ToolkitTransaction.commit() is called by the same thread. User should use ToolkitLock with ToolkitTransaction for visibility.



Copyright © 2013 Terracotta, Inc.. All Rights Reserved.