public class SubscribableKafkaChannel extends AbstractKafkaChannel implements SubscribableChannel, ManageableSmartLifecycle
AbstractMessageChannel.ChannelInterceptorList
IntegrationManagement.ManagementOverrides
topic
interceptors, meters
EXPRESSION_PARSER, logger
INDEFINITE_TIMEOUT
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
コンストラクターと説明 |
---|
SubscribableKafkaChannel(org.springframework.kafka.core.KafkaOperations<?,?> template, org.springframework.kafka.config.KafkaListenerContainerFactory<?> factory, StringSE channelTopic) 提供されたパラメーターを使用してインスタンスを構築します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected MessageDispatcher | createDispatcher() |
int | getPhase() |
boolean | isAutoStartup() |
boolean | isRunning() |
protected void | onInit() サブクラスは、初期化ロジック用にこれを実装できます。 |
void | setAutoStartup(boolean autoStartup) 自動起動を設定します。 |
void | setPhase(int phase) フェーズを設定します。 |
void | start() |
void | stop() |
void | stop(RunnableSE callback) |
boolean | subscribe(MessageHandler handler) |
boolean | unsubscribe(MessageHandler handler) |
doSend, getGroupId, setGroupId
addInterceptor, addInterceptor, destroy, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isLoggingEnabled, registerMetricsCaptor, removeInterceptor, removeInterceptor, send, send, setDatatypes, setInterceptors, setLoggingEnabled, setMessageConverter, setShouldTrack
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
send, send
getManagedName, getManagedType, getThisAs, setManagedName, setManagedType
getBeanName, getComponentName
public SubscribableKafkaChannel(org.springframework.kafka.core.KafkaOperations<?,?> template, org.springframework.kafka.config.KafkaListenerContainerFactory<?> factory, StringSE channelTopic)
template
- 送信用のテンプレート。factory
- 受け取るためのコンテナーを作成するためのファクトリ。channelTopic
- トピック。public int getPhase()
Phased
の getPhase
SmartLifecycle
の getPhase
public void setPhase(int phase)
phase
- フェーズ。Phased
public boolean isRunning()
Lifecycle
の isRunning
ManageableLifecycle
の isRunning
public void setAutoStartup(boolean autoStartup)
autoStartup
- 自動的に開始するには true。SmartLifecycle
public boolean isAutoStartup()
SmartLifecycle
の isAutoStartup
protected void onInit()
IntegrationObjectSupport
AbstractMessageChannel
の onInit
protected MessageDispatcher createDispatcher()
public void start()
Lifecycle
の start
ManageableLifecycle
の start
public void stop()
Lifecycle
の stop
ManageableLifecycle
の stop
public void stop(RunnableSE callback)
SmartLifecycle
の stop
public boolean subscribe(MessageHandler handler)
SubscribableChannel
の subscribe
public boolean unsubscribe(MessageHandler handler)
SubscribableChannel
の unsubscribe