@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, waitinterceptResultAsCompletionStage, interceptResultAsCompletionStage, interceptResultAsPublisher, interceptResultAsPublisher, of, unsupportedpublic InterceptedMethod.ResultType resultType()
InterceptedMethodresultType in interface InterceptedMethodInterceptedMethod.ResultTypepublic Argument<?> returnTypeValue()
InterceptedMethodreturnTypeValue in interface InterceptedMethodpublic java.lang.Object interceptResult()
InterceptedMethodInvocationContext.proceed() and converts result to appropriate type.interceptResult in interface InterceptedMethodpublic java.lang.Object interceptResult(Interceptor<?,?> from)
InterceptedMethodInvocationContext.proceed(Interceptor) and converts result to appropriate type.interceptResult in interface InterceptedMethodfrom - The interceptor to start frompublic java.lang.Object handleResult(java.lang.Object result)
InterceptedMethodhandleResult in interface InterceptedMethodresult - The result of the invocationpublic <E extends java.lang.Throwable> java.lang.Object handleException(java.lang.Exception exception)
throws E extends java.lang.Throwable
InterceptedMethodhandleException in interface InterceptedMethodE - Sneaky throws helperexception - The exceptionE - The exceptionE extends java.lang.Throwable