1 回答

holdtom
TA貢獻1805條經驗 獲得超10個贊
好的??雌饋砟愕膯栴}是你沒有捕獲異常來繼續。
請參閱async以下選項ServiceActivatingHandler:
/**
* Allow async replies. If the handler reply is a {@link ListenableFuture}, send
* the output when it is satisfied rather than sending the future as the result.
* Ignored for return types other than {@link ListenableFuture}.
* @param async true to allow.
* @since 4.3
*/
public final void setAsync(boolean async) {
因此,僅當從目標實現返回a (或 Reactive )時,它才真正是異步的。這不是事實。因此,您的網關定義是正確的方法。盡管您需要從中返回一些內容,但這將是網關調用的返回。否則我們就會陷入等待回復或錯誤的境地。ListenableFuturePublsiherhandleRequestMessage()SftpOutboundGatewayerrorChannel = "sftp.error.channel"sftpErrorHandler
添加回答
舉報
0/150
提交
取消