groovyx.gpars.stm
Class GParsAtomicBlock<T>

java.lang.Object
  extended by groovyx.gpars.stm.GParsAtomicBlock<T>
All Implemented Interfaces:
org.multiverse.api.closures.AtomicClosure<T>

final class GParsAtomicBlock<T>
extends java.lang.Object
implements org.multiverse.api.closures.AtomicClosure<T>

A default implementation of org.multiverse.api.closures.AtomicClosure properly handling exception propagation

Author:
Vaclav Pech

Field Summary
private  groovy.lang.Closure code
           
 
Constructor Summary
GParsAtomicBlock(groovy.lang.Closure code)
           
 
Method Summary
 T execute(org.multiverse.api.Transaction transaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private final groovy.lang.Closure code
Constructor Detail

GParsAtomicBlock

GParsAtomicBlock(groovy.lang.Closure code)
Method Detail

execute

public T execute(org.multiverse.api.Transaction transaction)
Specified by:
execute in interface org.multiverse.api.closures.AtomicClosure<T>

Copyright © 2008–2010 Václav Pech. All Rights Reserved.