.commandBus(commandBus) .retryScheduler(retryScheduler) .dispatchInterceptors(dispatchInterceptors) .dispatchers(dispatchers) .build(); return gatewayInterface.cast(Proxy.newProxyInstance( gatewayInterface.getClassLoader(), new Class[]{gatewayInterface}, gatewayInvocationHandler
.commandBus(commandBus) .retryScheduler(retryScheduler) .dispatchInterceptors(dispatchInterceptors) .dispatchers(dispatchers) .build(); return gatewayInterface.cast(Proxy.newProxyInstance( gatewayInterface.getClassLoader(), new Class[]{gatewayInterface}, gatewayInvocationHandler
/** * Instantiate a Builder to be able to create a {@link GatewayInvocationHandler}. * <p> * The {@code dispatchInterceptors} are defaulted to an empty list. * The {@link CommandBus} is a <b>hard requirements</b> and as such should be provided. * * @return a Builder to be able to create a {@link GatewayInvocationHandler} */ public static Builder builder() { return new Builder(); }
/** * Instantiate a Builder to be able to create a {@link GatewayInvocationHandler}. * <p> * The {@code dispatchInterceptors} are defaulted to an empty list. * The {@link CommandBus} is a <b>hard requirements</b> and as such should be provided. * * @return a Builder to be able to create a {@link GatewayInvocationHandler} */ public static Builder builder() { return new Builder(); }