org.actorsguildframework.annotations
Annotation Type Usage


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Usage

Usage declares the way the message spends its time when it is not waiting for other actors. This is useful for the framework so it can allocate an appropriate amount of threads. The default is CpuBound, thus the framework assumes that you are actually doing something in the message implementation while you are not waiting for another Actor. However, if your application spends its time waiting for I/O operations or some external event, it must set the appropriate ThreadUsage, or the framework will not be able to allocate enough threads. The threadUsage can be set for both @Message and @Initializer. ThreadUsage.CpuBound is the default.


Optional Element Summary
 ThreadUsage value
          The ThreadUsage value.
 

value

public abstract ThreadUsage value
The ThreadUsage value.

Returns:
the ThreadUsage.
Default:
CpuBound