public class QuiesceInterceptor extends Object implements Interceptor
Constructor and Description |
---|
QuiesceInterceptor(ServiceRecipe serviceRecipe) |
Modifier and Type | Method and Description |
---|---|
int |
getRank()
Return the rank of the interceptor, which is used to determine the order of the interceptors to be invoked
Rank is between Integer.MIN_VALUE and Integer.MAX_VALUE, interceptors are called in the order of highest value
rank first to lowest value rank last i.e.
|
void |
postCallWithException(ComponentMetadata cm,
Method m,
Throwable ex,
Object preCallToken)
The method is called after the method m is invoked and causes an exception.
|
void |
postCallWithReturn(ComponentMetadata cm,
Method m,
Object returnType,
Object preCallToken)
This method is called after the method m is invoked and returned normally.
|
Object |
preCall(ComponentMetadata cm,
Method m,
Object... parameters)
This is called just before the method m is invocation.
|
public QuiesceInterceptor(ServiceRecipe serviceRecipe)
public Object preCall(ComponentMetadata cm, Method m, Object... parameters) throws Throwable
Interceptor
preCall
in interface Interceptor
cm
- : the component's metadaThrowable
public void postCallWithReturn(ComponentMetadata cm, Method m, Object returnType, Object preCallToken) throws Throwable
Interceptor
postCallWithReturn
in interface Interceptor
returnType
- : the return objectpreCallToken
- token returned by preCallThrowable
public void postCallWithException(ComponentMetadata cm, Method m, Throwable ex, Object preCallToken) throws Throwable
Interceptor
postCallWithException
in interface Interceptor
cm
- : the component metadatam
- : the method invokedex
- : the Throwable
thrownpreCallToken
- token returned by preCallThrowable
public int getRank()
Interceptor
getRank
in interface Interceptor
Copyright © 2013. All Rights Reserved.