groovyx.gpars.stm
Class GParsTxnExecutor<T>

java.lang.Object
  extended by groovyx.gpars.stm.GParsTxnExecutor<T>
All Implemented Interfaces:
org.multiverse.api.callables.TxnCallable<T>

final class GParsTxnExecutor<T>
extends java.lang.Object
implements org.multiverse.api.callables.TxnCallable<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
GParsTxnExecutor(groovy.lang.Closure code)
           
 
Method Summary
 T call(org.multiverse.api.Txn 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

GParsTxnExecutor

GParsTxnExecutor(groovy.lang.Closure code)
Method Detail

call

public T call(org.multiverse.api.Txn transaction)
Specified by:
call in interface org.multiverse.api.callables.TxnCallable<T>

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