org.codehaus.gpars

groovyx.gpars
[Java] Annotation Type AsyncFun

java.lang.Object
  groovyx.gpars.AsyncFun

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@GroovyASTTransformationClass(classes = {AsyncFunASTTransformation.class})
public @interface AsyncFun

This annotation makes a field or local variable as an asynchronous function, and the field/variable should be evaluated only within the context of a ThreadPool.

Authors:
Vladimir Orany
Hamlet D'Arcy Date: May 14, 2011


 
Optional Element Summary
boolean blocking

Set to true to execute the closure in blocking mode.

java.lang.Class value

@default GParsPoolUtil.class

 
Method Summary
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Element Detail

blocking

boolean blocking
Set to true to execute the closure in blocking mode. @default false
Returns:
The current value


value

java.lang.Class value
@default GParsPoolUtil.class


 

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