@Internal public class SynchronousInterceptedMethod extends java.lang.Object implements InterceptedMethod
InterceptedMethod.ResultType
Modifier and Type | Method and Description |
---|---|
<E extends java.lang.Throwable> |
handleException(java.lang.Exception exception)
Handle the exception that should be thrown out of the invocation.
|
java.lang.Object |
handleResult(java.lang.Object result)
Handle the value that should be the result of the invocation.
|
java.lang.Object |
interceptResult()
Proceeds with invocation of
InvocationContext.proceed() and converts result to appropriate type. |
java.lang.Object |
interceptResult(Interceptor<?,?> from)
Proceeds with invocation of
InvocationContext.proceed(Interceptor) and converts result to appropriate type. |
InterceptedMethod.ResultType |
resultType()
Returns result type of the method.
|
Argument<?> |
returnTypeValue()
Returns result type value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interceptResultAsCompletionStage, interceptResultAsCompletionStage, interceptResultAsPublisher, interceptResultAsPublisher, interceptResultAsPublisher, of, unsupported
public InterceptedMethod.ResultType resultType()
InterceptedMethod
resultType
in interface InterceptedMethod
InterceptedMethod.ResultType
public Argument<?> returnTypeValue()
InterceptedMethod
returnTypeValue
in interface InterceptedMethod
public java.lang.Object interceptResult()
InterceptedMethod
InvocationContext.proceed()
and converts result to appropriate type.interceptResult
in interface InterceptedMethod
public java.lang.Object interceptResult(Interceptor<?,?> from)
InterceptedMethod
InvocationContext.proceed(Interceptor)
and converts result to appropriate type.interceptResult
in interface InterceptedMethod
from
- The interceptor to start frompublic java.lang.Object handleResult(java.lang.Object result)
InterceptedMethod
handleResult
in interface InterceptedMethod
result
- The result of the invocationpublic <E extends java.lang.Throwable> java.lang.Object handleException(java.lang.Exception exception) throws E extends java.lang.Throwable
InterceptedMethod
handleException
in interface InterceptedMethod
E
- Sneaky throws helperexception
- The exceptionE
- The exceptionE extends java.lang.Throwable