クラス NullChannel
java.lang.ObjectSE
org.springframework.integration.channel.NullChannel
- 実装済みのインターフェース一覧:
Aware, BeanNameAware, DisposableBean, IntegrationPattern, NamedComponent, IntegrationManagement, MessageChannel, PollableChannel
@IntegrationManagedResource
public class NullChannel
extends ObjectSE
implements PollableChannel, BeanNameAware, IntegrationManagement, IntegrationPattern
基本的に "/dev/null" のように動作するチャネル実装。アクションは実行されませんが、すべての
receive() 呼び出しは null を返し、すべての send(Message, long) 呼び出しは true を返します。送信されたメッセージのペイロードが Publisher 実装でない限り、この場合、Publisher.subscribe(Subscriber) が呼び出されてリアクティブストリームが開始されますが、データはこのチャネルによって破棄されます。リアクティブストリーム処理(Subscriber.onError(Throwable) を参照)からスローされたエラーは、warn レベルでログに記録されます。ただし、呼び出しはデバッグレベルでログに記録されることに注意してください。- 作成者:
- Mark Fisher, Gary Russell, Artem Bilan
ネストされたクラスの概要
インターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
インターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース MessageChannel から継承されたフィールド
INDEFINITE_TIMEOUTコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voiddestroy()このコンポーネントが実装するパターン型を返します。オーバーライドを返します。booleanロギングが有効かどうかを返します。@Nullable Message<?> receive()@Nullable Message<?> receive(long timeout) voidregisterMetricsCaptor(MetricsCaptor registry) MetricsCaptorを注入します。booleanbooleanvoidsetBeanName(StringSE beanName) voidsetLoggingEnabled(boolean loggingEnabled) ロギングを有効にするかどうか。toString()クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getThisAs, isObserved, registerObservationRegistry, setManagedName, setManagedTypeインターフェース NamedComponent から継承されたメソッド
getBeanName
コンストラクターの詳細
NullChannel
public NullChannel()
方法の詳細
setBeanName
- 次で指定:
- インターフェース
BeanNameAware内のsetBeanName
isLoggingEnabled
public boolean isLoggingEnabled()インターフェースからコピーされた説明:IntegrationManagementロギングが有効かどうかを返します。- 次で指定:
- インターフェース
IntegrationManagement内のisLoggingEnabled - 戻り値:
- 有効な場合は true。
setLoggingEnabled
public void setLoggingEnabled(boolean loggingEnabled) インターフェースからコピーされた説明:IntegrationManagementロギングを有効にするかどうか。- 次で指定:
- インターフェース
IntegrationManagement内のsetLoggingEnabled - パラメーター:
loggingEnabled- 無効にする場合は false。
getComponentName
- 次で指定:
- インターフェース
NamedComponent内のgetComponentName
getComponentType
- 次で指定:
- インターフェース
NamedComponent内のgetComponentType
getIntegrationPatternType
インターフェースからコピーされた説明:IntegrationPatternこのコンポーネントが実装するパターン型を返します。- 次で指定:
- インターフェース
IntegrationPattern内のgetIntegrationPatternType - 戻り値:
- このコンポーネントが実装する
IntegrationPatternType
registerMetricsCaptor
インターフェースからコピーされた説明:IntegrationManagementMetricsCaptorを注入します。ObservationRegistryが指定されている場合は無視されます。- 次で指定:
- インターフェース
IntegrationManagement内のregisterMetricsCaptor - パラメーター:
registry- キャプター。- 関連事項:
getOverrides
インターフェースからコピーされた説明:IntegrationManagementオーバーライドを返します。- 次で指定:
- インターフェース
IntegrationManagement内のgetOverrides - 戻り値:
- オーバーライド。
send
- 次で指定:
- インターフェース
MessageChannel内のsend
send
- 次で指定:
- インターフェース
MessageChannel内のsend
receive
- 次で指定:
- インターフェース
PollableChannel内のreceive
receive
- 次で指定:
- インターフェース
PollableChannel内のreceive
toString
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBean内のdestroy - 次で指定:
- インターフェース
IntegrationManagement内のdestroy