jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Don't see much use for _at_Suspend

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 18 Jun 2012 11:16:51 -0400

@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