Package | Description |
---|---|
org.axonframework.commandhandling.gateway |
Modifier and Type | Method and Description |
---|---|
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToFireAndForget(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate)
Wrap the given
delegate in an InvocationHandler that returns immediately after invoking the
delegate . |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnNullOnInterrupted(CommandGatewayFactory.InvocationHandler<R> delegate)
Wrap the given
delegate in an InvocationHandler that returns null when the
delegate
throws an InterruptedException. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnNullOnTimeout(CommandGatewayFactory.InvocationHandler<R> delegate)
Wrap the given
delegate in an InvocationHandler that returns null when the
delegate throws a TimeoutException. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnWithFixedTimeout(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate,
long timeout,
TimeUnit timeUnit)
Wraps the given
delegate and waits for the result in the Future to become available, with given
timeout and timeUnit . |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnWithTimeoutInArguments(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate,
int timeoutIndex,
int timeUnitIndex)
Wraps the given
delegate and waits for the result in the Future to become available using given
indices to resolve the parameters that provide the timeout to use. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToWaitForResult(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate)
Wraps the given
delegate and waits for the result in the Future to become available. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapUndeclaredExceptions(CommandGatewayFactory.InvocationHandler<R> delegate,
Class<?>[] declaredExceptions)
Wraps the given
delegate in an InvocationHandler that wraps exceptions not declared on the method
in a CommandExecutionException . |
Modifier and Type | Method and Description |
---|---|
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToFireAndForget(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate)
Wrap the given
delegate in an InvocationHandler that returns immediately after invoking the
delegate . |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnNullOnInterrupted(CommandGatewayFactory.InvocationHandler<R> delegate)
Wrap the given
delegate in an InvocationHandler that returns null when the
delegate
throws an InterruptedException. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnNullOnTimeout(CommandGatewayFactory.InvocationHandler<R> delegate)
Wrap the given
delegate in an InvocationHandler that returns null when the
delegate throws a TimeoutException. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnWithFixedTimeout(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate,
long timeout,
TimeUnit timeUnit)
Wraps the given
delegate and waits for the result in the Future to become available, with given
timeout and timeUnit . |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToReturnWithTimeoutInArguments(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate,
int timeoutIndex,
int timeUnitIndex)
Wraps the given
delegate and waits for the result in the Future to become available using given
indices to resolve the parameters that provide the timeout to use. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapToWaitForResult(CommandGatewayFactory.InvocationHandler<CompletableFuture<R>> delegate)
Wraps the given
delegate and waits for the result in the Future to become available. |
protected <R> CommandGatewayFactory.InvocationHandler<R> |
CommandGatewayFactory.wrapUndeclaredExceptions(CommandGatewayFactory.InvocationHandler<R> delegate,
Class<?>[] declaredExceptions)
Wraps the given
delegate in an InvocationHandler that wraps exceptions not declared on the method
in a CommandExecutionException . |
Copyright © 2010–2019. All rights reserved.