public static class RMIRegistry.MethodAnnotationRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends java.lang.Exception> |
getMethodAlternativeRemoteException(java.lang.reflect.Method method)
Get the exception class alternative to
RemoteException for the
specified method. |
int |
getMethodCacheTimeout(java.lang.reflect.Method method)
Gets the caching timeout of the specified method.
|
boolean |
isMethodAsynch(java.lang.reflect.Method method)
Returns the asynchronous status of a remote method.
|
boolean |
isMethodSuppressingFaults(java.lang.reflect.Method method)
Gets the fault suppressing flag of a method.
|
void |
resetMethodAlternativeRemoteException(java.lang.reflect.Method method)
Resets the alternative remote exception class for the specified method.
|
void |
resetMethodAsynch(java.lang.reflect.Method method)
Resets the asynchronous status of a method, that means: if the method is
annotated with
RMIAsynch annotation, it is set as asynchronous, as
synchronous otherwise. |
void |
resetMethodCachedDefault(java.lang.reflect.Method method)
Resets the cache timeout for the specified method.
|
void |
resetMethodRemoteFaultsSuppression(java.lang.reflect.Method method)
Resets the remote invocation faults suppression flag of the specified method.
|
void |
setMethodAlternativeRemoteException(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.Exception> exceptionClass)
Set the exception class alternative to
RemoteException for the
specified method. |
void |
setMethodAsynch(java.lang.reflect.Method method,
boolean set)
Flags a method as asynchronous or not.
|
void |
setMethodCached(java.lang.reflect.Method method,
int cacheTimeout)
Sets the cache timeout for the specified method.
|
void |
setMethodRemoteFaultsSuppression(java.lang.reflect.Method method,
boolean set)
Flags the specified method to suppress the remote invocation faults.
|
public boolean isMethodAsynch(java.lang.reflect.Method method)
setMethodAsynch(Method, boolean)
for more details.method
- the remote methodvoid
.setMethodAsynch(Method, boolean)
,
resetMethodAsynch(Method)
,
RMIAsynch
public void setMethodAsynch(java.lang.reflect.Method method, boolean set)
void
.RMIAsynch
annotation at
compilation time.method
- the remote methodset
- true if the method should be asynchronous, false otherwise.isMethodAsynch(Method)
,
resetMethodAsynch(Method)
,
RMIAsynch
public void resetMethodAsynch(java.lang.reflect.Method method)
RMIAsynch
annotation, it is set as asynchronous, as
synchronous otherwise.method
- the remote methodisMethodAsynch(Method)
,
setMethodAsynch(Method, boolean)
,
RMIAsynch
public boolean isMethodSuppressingFaults(java.lang.reflect.Method method)
method
- the remote methodRMISuppressFaults
,
setMethodRemoteFaultsSuppression(Method, boolean)
,
resetMethodRemoteFaultsSuppression(Method)
public void setMethodRemoteFaultsSuppression(java.lang.reflect.Method method, boolean set)
RMISuppressFaults
for more details.method
- the remote methodset
- true if the method must suppress remote invocation faults,
false otherwiseRMISuppressFaults
,
isMethodSuppressingFaults(Method)
,
resetMethodRemoteFaultsSuppression(Method)
public void resetMethodRemoteFaultsSuppression(java.lang.reflect.Method method)
RMISuppressFaults
, the suppression
will be activated, deactivated otherwise.method
- the remote methodRMISuppressFaults
,
setMethodRemoteFaultsSuppression(Method, boolean)
,
isMethodSuppressingFaults(Method)
public int getMethodCacheTimeout(java.lang.reflect.Method method)
method
- the remote methodRMICached
,
setMethodCached(Method, int)
,
resetMethodCachedDefault(Method)
public void setMethodCached(java.lang.reflect.Method method, int cacheTimeout)
RMICached
for more details.method
- the remote methodcacheTimeout
- the cache timeout in millisecondsRMICached
,
getMethodCacheTimeout(Method)
,
resetMethodCachedDefault(Method)
public void resetMethodCachedDefault(java.lang.reflect.Method method)
RMICached
annotation, it will be cached, not cached
otherwise.method
- the remote methodRMICached
,
getMethodCacheTimeout(Method)
,
setMethodCached(Method, int)
public java.lang.Class<? extends java.lang.Exception> getMethodAlternativeRemoteException(java.lang.reflect.Method method)
RemoteException
for the
specified method.method
- the remote methodRemoteException
on
faultsRMIRemoteExceptionAlternative
,
setMethodAlternativeRemoteException(Method, Class)
,
resetMethodAlternativeRemoteException(Method)
public void setMethodAlternativeRemoteException(java.lang.reflect.Method method, java.lang.Class<? extends java.lang.Exception> exceptionClass)
RemoteException
for the
specified method.RMIRemoteExceptionAlternative
for more details.method
- the remote methodexceptionClass
- the alternative exception classRMIRemoteExceptionAlternative
,
getMethodAlternativeRemoteException(Method)
,
resetMethodAlternativeRemoteException(Method)
public void resetMethodAlternativeRemoteException(java.lang.reflect.Method method)
RMIRemoteExceptionAlternative
, it will
throw the exception specified in the annotation, the RemoteException
otherwise.method
- the remote methodRMIRemoteExceptionAlternative
,
getMethodAlternativeRemoteException(Method)
,
setMethodAlternativeRemoteException(Method, Class)