DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

SimpleTimeLimiter #1530

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
SimpleTimeLimiter/TimeLimiter is still beta since a while , 

what about adding a  method providing a proxy on a Callable (so with the 
TimeLimitation) ... but with a default value,

so that the end user of this could not take care any more if it is a the 
callable is a time limited or not 

the signature would be something like 

<T> Callable<T> newProxy(Callable<T> interfaceType, long timeoutDuration, 
TimeUnit timeoutUnit, T default value)

implementation would be the same but just surrounding with a try catch and 
returning the default value. 

it could be also put in the interface TimeLimiter

Original issue reported on code.google.com by francois...@gmail.com on 12 Sep 2013 at 4:40

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 20 Nov 2013 at 8:16

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08