Class PrePostConditionInterceptor

    • Constructor Detail

      • PrePostConditionInterceptor

        public PrePostConditionInterceptor​(IInternalAccess ia)
        Create a new AbstractLRUApplicableInterceptor.
    • Method Detail

      • isPrePostCondition

        protected boolean isPrePostCondition​(java.lang.annotation.Annotation anno)
        Check if an annotation belongs to the supported types of pre/postconditions.
      • execute

        public IFuture<java.lang.Void> execute​(ServiceInvocationContext context)
        Execute the interceptor.
        Parameters:
        context - The invocation context.
      • checkPreConditions

        protected java.lang.RuntimeException checkPreConditions​(ServiceInvocationContext context)
        Check the precondition.
      • checkPostConditions

        protected java.lang.Exception checkPostConditions​(ServiceInvocationContext context,
                                                          java.lang.Object res,
                                                          boolean intermediate,
                                                          java.util.List<java.lang.Object> ires)
        Check the postconditions.
      • getKeepForPostConditions

        protected int getKeepForPostConditions​(ServiceInvocationContext context)
        Get the number of intermediate results that should be explicitly kept by the interceptor (only necessary for subscription futures).