Class EJBReceiverInvocationContext

    • Method Detail

      • proceedAsynchronously

        public void proceedAsynchronously()
        Indicate that the invocation should proceed asynchronously, if it isn't already.
      • resultReady

        public void resultReady​(EJBReceiverInvocationContext.ResultProducer resultProducer)
        Indicate that the invocation result is ready. The given producer should either return the final invocation result or throw an appropriate exception. Any unmarshalling is expected to be deferred until the result producer is called, in order to offload the work on the invoking thread even in the presence of asynchronous invocation.
        Parameters:
        resultProducer - the result producer
      • requestCancelled

        public void requestCancelled()
        Indicate that the request was successfully cancelled and that no result is forthcoming.
      • requestFailed

        public void requestFailed​(Exception cause)
        Indicate that a request failed locally with the given exception cause. Retries are called in the current thread before this method returns.
        Parameters:
        cause - the failure cause (must not be null)
      • requestFailed

        public void requestFailed​(Exception cause,
                                  Executor retryExecutor)
        Indicate that a request failed locally with the given exception cause.
        Parameters:
        cause - the failure cause (must not be null)
        retryExecutor - the executor to use for retry attempts (must not be null)
      • getDiscovery

        public org.wildfly.discovery.Discovery getDiscovery()
      • getAuthenticationContext

        public org.wildfly.security.auth.client.AuthenticationContext getAuthenticationContext()
        Description copied from class: AbstractReceiverInvocationContext
        Get the authentication context of the request. The configuration may be associated with the proxy, or it may have been inherited from the environment.
        Specified by:
        getAuthenticationContext in class AbstractReceiverInvocationContext
        Returns:
        the authentication configuration of the request (not null)