org.codehaus.gpars

groovyx.gpars
[Java] Annotation Type AsyncFun

java.lang.Object
  groovyx.gpars.AsyncFun

@java.lang.annotation.Documented
@java.lang.annotation.Retention(RetentionPolicy.RUNTIME)
@java.lang.annotation.Target({ElementType.FIELD})
@org.codehaus.groovy.transform.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, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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

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


value

public java.lang.Class value
@default GParsPoolUtil.class


 

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