public class SubscribableKafkaChannel extends AbstractKafkaChannel implements SubscribableChannel, ManageableSmartLifecycle
AbstractMessageChannel.ChannelInterceptorListIntegrationManagement.ManagementOverridestopicinterceptors, metersEXPRESSION_PARSER, loggerINDEFINITE_TIMEOUTMETER_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, setGroupIdaddInterceptor, addInterceptor, destroy, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isLoggingEnabled, registerMetricsCaptor, removeInterceptor, removeInterceptor, send, send, setDatatypes, setInterceptors, setLoggingEnabled, setMessageConverter, setShouldTrackafterPropertiesSet, 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, toStringcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEsend, sendgetManagedName, getManagedType, getThisAs, setManagedName, setManagedTypegetBeanName, getComponentNamepublic 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 - フェーズ。Phasedpublic boolean isRunning()
Lifecycle の isRunning ManageableLifecycle の isRunning public void setAutoStartup(boolean autoStartup)
autoStartup - 自動的に開始するには true。SmartLifecyclepublic boolean isAutoStartup()
SmartLifecycle の isAutoStartup protected void onInit()
IntegrationObjectSupportAbstractMessageChannel の 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