Class InterceptorInvocationResult.InProgress
- java.lang.Object
-
- com.opencloud.slee.resources.sis.script.interceptors.InterceptorInvocationResult
-
- com.opencloud.slee.resources.sis.script.interceptors.InterceptorInvocationResult.InProgress
-
- Enclosing class:
- InterceptorInvocationResult
public static final class InterceptorInvocationResult.InProgress extends InterceptorInvocationResult
Class representing that an interceptor invocation is currently in progress and will complete asynchronously. AnInterceptorInvocationCompletedEvent
will be fired on theInterceptorInvocationActivity
when the interceptor completes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.opencloud.slee.resources.sis.script.interceptors.InterceptorInvocationResult
InterceptorInvocationResult.Completed, InterceptorInvocationResult.Failed, InterceptorInvocationResult.InProgress, InterceptorInvocationResult.Outcome
-
-
Constructor Summary
Constructors Constructor Description InProgress(int invocationID, InterceptorInvocationActivity activity)
Create a new interceptor invocation in-progress result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterceptorInvocationActivity
getActivity()
Get theInterceptorInvocationActivity
on which theInterceptorInvocationCompletedEvent
will be fired on when the interceptor completes.int
getInvocationID()
Get the invocation id of this interceptor invocation.String
toString()
-
Methods inherited from class com.opencloud.slee.resources.sis.script.interceptors.InterceptorInvocationResult
getOutcome
-
-
-
-
Constructor Detail
-
InProgress
public InProgress(int invocationID, InterceptorInvocationActivity activity)
Create a new interceptor invocation in-progress result.- Parameters:
invocationID
- interceptor invocation id.activity
- the activity on which theInterceptorInvocationCompletedEvent
will be fired when the interceptor completes.
-
-
Method Detail
-
getInvocationID
public int getInvocationID()
Get the invocation id of this interceptor invocation. This same id will be included in theInterceptorInvocationCompletedEvent
fired when this interceptor invocation completes.- Returns:
- the invocation id.
-
getActivity
public InterceptorInvocationActivity getActivity()
Get theInterceptorInvocationActivity
on which theInterceptorInvocationCompletedEvent
will be fired on when the interceptor completes. If a non-null activity was passed toInterceptorExtensionsProvider.invokeInterceptor(String, Object, InterceptorInvocationActivity)
then the same activity will be returned here. Otherwise, the calling SBB should attach to this activity to receive the event.- Returns:
- the activity that the
InterceptorInvocationCompletedEvent
will be fired on when the interceptor completed.
-
-