@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface RMICached
Setup a remote method to cache its return value for the specified amount of
time. If a method is cached for a given timeout, then each call to the remote
method will be sent to the remote machine if and only if that timeout expired
since the last call, else it returns the last result in the cache, without
requesting the remote invocation. This semantics can be useful when the
method returns an estimate of a very volatile property or when the method
represents an operation whose result can be supposed to be valid for the
given timeout.
This annotation has effect on methods that accept no parameters only.
- Author:
- Salvatore Giampa'