That is really easy to implement, but do you think it ever makes sense to 
hardcode a duration? (And, also, is there a good way to specify a literal date 
in an annotation?)


Well, I guess I could come up with some kind of expression language for 
expiry/duration, eg:

@Asynchronous(duration="1 day", intervalDuration="2 weeks")

@Asynchronous(expiry="1 hour + 10 ms", intervalDuration="1000 ms")

Or, perhaps:

@Asynchronous(expiry="#{event.expiry}", intervalDuration="#{event.repeat}")

(1) What is the real usecase?
(2) Which works best for you?
(3) Do you think you really need it?
(4) Do you want to implement it and submit a patch (its straightforward, I 
promise.)

(Yes, I missed the  declaration when I wrote the docs. Bad on me.)


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981904#3981904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981904
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to