This class wraps an object, and dynamically alters the priority of the
invocation thread at runtime. Normally, the thread is moved to lowest
priority, to reduce the burden on the serving JVM for methods requiring a
lot of processing resources. However the wrapper can also be used escalate
the invocation thread to maximum priority, for time critical tasks.
This method intercepts the remote invocation thread, and alters its
priority from normal. Typically the invocation thread is set to minimum
priority, but can also be used to evelate the thread to maximum
priority, if desired. When the invocation is complete, the thread will
be restored to its original priority, to prevent potential side affects
if an invocation is local.
method - The name of the method to invoke on the wrapped object
args - The data relevant to the invocation. It can be a single
object, an array, or null
The method result defined by a wrapped object's implementation,
Exception - As needed by the object, also, a
java.rmi.RemoteException can be thrown for network related reasons,
also a SecurityException can be thrown, if the codebase does not have
permission from the SecurityManager to alter thread priority.