public static CompletableFuture < IMessageSender > createTransferMessageSenderFromEntityPathAsync ( MessagingFactory messagingFactory , String entityPath , String viaEntityPath ) { Utils . assertNonNull ( "messagingFactory" , messagingFactory ) ; MessageSender sender = new MessageSender ( messagingFactory , viaEntityPath , entityPath , null ) ; return sender . initializeAsync ( ) . thenApply ( ( v ) - > sender ) ; }
Creates a transfer message sender asynchronously . This sender sends message to destination entity via another entity .