@Suspend is currently a pretty useless annotation.
@Suspend(timeout=12345)
public void get(@Context ExecutionContext ctx);
Really isn't much different than:
public void get(@Context ExecutionContext ctx)
{
ctx.suspend(12345);
}
How about allowing @Suspend to inject an ExecutionContext?
public void get(@Suspend ExecutionContext ctx);
At least in this case, you're saving the typing of @Context.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com