クラス 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(org.springframework.messaging.Message<?>, long)
呼び出しは true
を返します。送信されたメッセージのペイロードが Publisher
実装でない限り、この場合、Publisher.subscribe(Subscriber)
が呼び出されてリアクティブストリームが開始されますが、データはこのチャネルによって破棄されます。リアクティブストリーム処理(Subscriber.onError(Throwable)
を参照)からスローされたエラーは、warn
レベルでログに記録されます。ただし、呼び出しはデバッグレベルでログに記録されることに注意してください。- 作成者:
- Mark Fisher, Gary Russell, Artem Bilan
ネストされたクラスのサマリー
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドのサマリー
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.messaging.MessageChannel から継承されたフィールド
INDEFINITE_TIMEOUT
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
destroy()
このコンポーネントが実装するパターン型を返します。オーバーライドを返します。boolean
ロギングが有効かどうかを返します。Message
<?> receive()
Message
<?> receive
(long timeout) void
registerMetricsCaptor
(MetricsCaptor registry) MetricsCaptor
を注入します。boolean
boolean
void
setBeanName
(StringSE beanName) void
setLoggingEnabled
(boolean loggingEnabled) ロギングを有効にするかどうか。toString()
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getThisAs, isObserved, registerObservationRegistry, setManagedName, setManagedType
コンストラクターの詳細
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。
getBeanName
- 次で指定:
- インターフェース
NamedComponent
のgetBeanName
getComponentName
- 次で指定:
- インターフェース
NamedComponent
のgetComponentName
getComponentType
- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
getIntegrationPatternType
インターフェースからコピーされた説明:IntegrationPattern
このコンポーネントが実装するパターン型を返します。- 次で指定:
- インターフェース
IntegrationPattern
のgetIntegrationPatternType
- 戻り値:
- このコンポーネントが実装する
IntegrationPatternType
registerMetricsCaptor
インターフェースからコピーされた説明:IntegrationManagement
MetricsCaptor
を注入します。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