コード例 #1
0
 @Override
 public Message<?> sendAndReceive(MessageChannel destination, Message<?> requestMessage) {
   if (!this.throwExceptionOnLateReplySet) {
     synchronized (this) {
       if (!this.throwExceptionOnLateReplySet) {
         Properties integrationProperties =
             IntegrationContextUtils.getIntegrationProperties(this.beanFactory);
         Boolean throwExceptionOnLateReply =
             Boolean.valueOf(
                 integrationProperties.getProperty(
                     IntegrationProperties.THROW_EXCEPTION_ON_LATE_REPLY));
         super.setThrowExceptionOnLateReply(throwExceptionOnLateReply);
         this.throwExceptionOnLateReplySet = true;
       }
     }
   }
   return super.sendAndReceive(destination, requestMessage);
 }