@Internal public class SynchronousInterceptedMethod extends Object implements InterceptedMethod
InterceptedMethod.ResultType| Modifier and Type | Method and Description |
|---|---|
<E extends Throwable> |
handleException(Exception exception)
Handle the exception that should be thrown out of the invocation.
|
Object |
handleResult(Object result)
Handle the value that should be the result of the invocation.
|
Object |
interceptResult()
Proceeds with invocation of
InvocationContext.proceed() and converts result to appropriate type. |
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, waitinterceptResultAsCompletionStage, interceptResultAsCompletionStage, interceptResultAsPublisher, interceptResultAsPublisher, interceptResultAsPublisher, of, unsupportedpublic InterceptedMethod.ResultType resultType()
InterceptedMethodresultType in interface InterceptedMethodInterceptedMethod.ResultTypepublic Argument<?> returnTypeValue()
InterceptedMethodreturnTypeValue in interface InterceptedMethodpublic Object interceptResult()
InterceptedMethodInvocationContext.proceed() and converts result to appropriate type.interceptResult in interface InterceptedMethodpublic Object interceptResult(Interceptor<?,?> from)
InterceptedMethodInvocationContext.proceed(Interceptor) and converts result to appropriate type.interceptResult in interface InterceptedMethodfrom - The interceptor to start frompublic Object handleResult(Object result)
InterceptedMethodhandleResult in interface InterceptedMethodresult - The result of the invocationpublic <E extends Throwable> Object handleException(Exception exception) throws E extends Throwable
InterceptedMethodhandleException in interface InterceptedMethodE - Sneaky throws helperexception - The exceptionE - The exceptionE extends Throwable