public abstract class AbstractPollingEndpoint extends AbstractEndpoint implements BeanClassLoaderAware
| 修飾子と型 | フィールドと説明 |
|---|---|
static long | DEFAULT_POLLING_PERIODPeriodicTrigger のデフォルトのポーリング期間。 |
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerDEFAULT_PHASE| コンストラクターと説明 |
|---|
AbstractPollingEndpoint() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected void | applyReceiveOnlyAdviceChain(CollectionSE<Advice> chain)receiveMessage() 呼び出しに応答するコンポーネントにアドバイスチェーンを追加します。 |
protected void | doStart() サブクラスは、開始動作でこのメソッドを実装する必要があります。 |
protected void | doStop() サブクラスは、停止動作でこのメソッドを実装する必要があります。 |
protected ClassLoaderSE | getBeanClassLoader() |
MessageChannel | getDefaultErrorChannel() エラーハンドラーが明示的に提供され、それが MessagePublishingErrorHandler である場合、デフォルトのエラーチャネルを返します。 |
protected reactor.core.publisher.Flux<Message<?>> | getPollingFlux() |
protected ObjectSE | getReceiveMessageSource() |
protected StringSE | getResourceKey() リソースが IntegrationResourceHolder の属性として使用可能になるキーを返します。 |
protected ObjectSE | getResourceToBind() トランザクション同期を使用するときにバインドするリソース(MessageSource など)を返します。 |
protected ExecutorSE | getTaskExecutor() |
protected abstract void | handleMessage(Message<?> message) メッセージを処理します。 |
protected boolean | isReactive() |
protected boolean | isReceiveOnlyAdvice(Advice advice) このアドバイスをポーリング全体ではなく receiveMessage() 操作にのみ適用する必要がある場合は、true を返します。 |
protected boolean | isSyncExecutor() |
protected void | onInit() サブクラスは、初期化ロジック用にこれを実装できます。 |
protected abstract Message<?> | receiveMessage() 次のメッセージを取得します(利用可能な場合)。 |
void | setAdviceChain(ListSE<Advice> adviceChain) |
void | setBeanClassLoader(ClassLoaderSE classLoader) |
void | setErrorHandler(ErrorHandler errorHandler) |
void | setMaxMessagesPerPoll(long maxMessagesPerPoll) |
protected void | setReceiveMessageSource(ObjectSE source) |
void | setTaskExecutor(ExecutorSE taskExecutor) |
void | setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) |
void | setTrigger(Trigger trigger) |
destroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, 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, waitSEpublic static final long DEFAULT_POLLING_PERIOD
PeriodicTrigger のデフォルトのポーリング期間。public void setTaskExecutor(ExecutorSE taskExecutor)
protected ExecutorSE getTaskExecutor()
protected boolean isSyncExecutor()
public void setTrigger(Trigger trigger)
public void setMaxMessagesPerPoll(long maxMessagesPerPoll)
public void setErrorHandler(ErrorHandler errorHandler)
public void setBeanClassLoader(ClassLoaderSE classLoader)
BeanClassLoaderAware の setBeanClassLoader public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
public MessageChannel getDefaultErrorChannel()
MessagePublishingErrorHandler である場合、デフォルトのエラーチャネルを返します。protected ClassLoaderSE getBeanClassLoader()
protected boolean isReceiveOnlyAdvice(Advice advice)
receiveMessage() 操作にのみ適用する必要がある場合は、true を返します。advice - 助言。protected void applyReceiveOnlyAdviceChain(CollectionSE<Advice> chain)
receiveMessage() 呼び出しに応答するコンポーネントにアドバイスチェーンを追加します。chain - アドバイスチェーン Collection。protected boolean isReactive()
protected reactor.core.publisher.Flux<Message<?>> getPollingFlux()
protected ObjectSE getReceiveMessageSource()
protected void setReceiveMessageSource(ObjectSE source)
protected void onInit()
IntegrationObjectSupportAbstractEndpoint の onInit protected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock を保持しているときに呼び出されます。AbstractEndpoint の doStart protected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock を保持しているときに呼び出されます。AbstractEndpoint の doStop protected abstract Message<?> receiveMessage()
protected abstract void handleMessage(Message<?> message)
message - メッセージ。protected ObjectSE getResourceToBind()
protected StringSE getResourceKey()
IntegrationResourceHolder の属性として使用可能になるキーを返します。デフォルトの ExpressionEvaluatingTransactionSynchronizationProcessor は、この属性を SpEL 式の変数として使用できるようにします。