@Override public MessageChannel getOutputChannel() { if (this.outputChannelName != null) { synchronized (this) { if (this.outputChannelName != null) { this.outputChannel = getChannelResolver().resolveDestination(this.outputChannelName); this.outputChannelName = null; } } } return this.outputChannel; }
/** * Return the error channel (if provided) to which error messages will * be routed. * @return the channel or null. * @since 4.3 */ public MessageChannel getErrorChannel() { if (this.errorChannelName != null) { synchronized (this) { if (this.errorChannelName != null) { this.errorChannel = getChannelResolver().resolveDestination(this.errorChannelName); this.errorChannelName = null; } } } return this.errorChannel; }
@Override public MessageChannel getOutputChannel() { if (this.outputChannelName != null) { synchronized (this) { if (this.outputChannelName != null) { this.outputChannel = getChannelResolver().resolveDestination(this.outputChannelName); this.outputChannelName = null; } } } return this.outputChannel; }
/** * Return the error channel (if provided) to which error messages will * be routed. * @return the channel or null. * @since 4.3 */ public MessageChannel getErrorChannel() { if (this.errorChannelName != null) { synchronized (this) { if (this.errorChannelName != null) { this.errorChannel = getChannelResolver().resolveDestination(this.errorChannelName); this.errorChannelName = null; } } } return this.errorChannel; }