クラス AbstractConfigurableMongoDbMessageStore
java.lang.ObjectSE
org.springframework.integration.store.AbstractBatchingMessageGroupStore
org.springframework.integration.store.AbstractMessageGroupStore
org.springframework.integration.mongodb.store.AbstractConfigurableMongoDbMessageStore
- 実装済みのインターフェース一覧:
IterableSE<MessageGroup>, Aware, InitializingBean, ApplicationContextAware, BasicMessageGroupStore, MessageGroupStore
public abstract class AbstractConfigurableMongoDbMessageStore
extends AbstractMessageGroupStore
implements InitializingBean, ApplicationContextAware
このクラスの実装の一般的なオプションの構成を提供するための、抽象的な MongoDB
AbstractMessageGroupStore 実装。- 導入:
- 4.0
- 作成者:
- Artem Bilan, Adama Sorho, Youbin Wu
ネストされたクラスの概要
インターフェース MessageGroupStore から継承されたネストクラス / インターフェース
MessageGroupStore.MessageGroupCallbackフィールド概要
フィールド修飾子と型フィールド説明protected final StringSEprotected final org.apache.commons.logging.Logprotected final @Nullable MongoDatabaseFactorystatic final StringSEクラス AbstractMessageGroupStore から継承されたフィールド
INTERRUPTED_WHILE_OBTAINING_LOCKコンストラクター概要
コンストラクターコンストラクター説明AbstractConfigurableMongoDbMessageStore(MongoTemplate mongoTemplate, StringSE collectionName) AbstractConfigurableMongoDbMessageStore(MongoDatabaseFactory mongoDbFactory, StringSE collectionName) AbstractConfigurableMongoDbMessageStore(MongoDatabaseFactory mongoDbFactory, @Nullable MappingMongoConverter mappingMongoConverter, StringSE collectionName) 方法の概要
修飾子と型メソッド説明protected voidaddMessageDocument(MessageDocument document) voidprotected voidprotected voiddoAddMessagesToGroup(ObjectSE groupId, Message<?>... messages) protected voiddoCompleteGroup(ObjectSE groupId) protected voiddoRemoveMessageGroup(ObjectSE groupId) protected voiddoRemoveMessagesFromGroup(ObjectSE key, CollectionSE<Message<?>> messages) protected voiddoSetGroupCondition(ObjectSE groupId, StringSE condition) protected voiddoSetLastReleasedSequenceNumberForGroup(ObjectSE groupId, int sequenceNumber) protected ApplicationContextprotected @Nullable MappingMongoConverter@Nullable Message<?> getMessage(UUIDSE id) protected MessageBuilderFactory@Nullable MessageMetadataCollectionSE<Message<?>> getMessagesForGroup(ObjectSE groupId) 指定されたグループ ID のメッセージを取得します。protected MongoTemplateprotected longprotected static QuerygroupIdQuery(ObjectSE groupId) iterator()intmessageGroupSize(ObjectSE groupId) この MessageGroup のサイズを返します。voidsetApplicationContext(ApplicationContext applicationContext) voidsetCreateIndexes(boolean createIndexes) インデックスを自動作成するかどうかのオプションを定義します。クラス AbstractMessageGroupStore から継承されたメソッド
addMessagesToGroup, addMessageToGroup, completeGroup, copy, doPollMessageFromGroup, doRemoveMessageFromGroupById, executeLocked, executeLocked, expireMessageGroups, getLockRegistry, getMessageCountForAllMessageGroups, getMessageGroupCount, getMessageGroupFactory, isTimeoutOnIdle, pollMessageFromGroup, registerMessageGroupExpiryCallback, removeMessageFromGroupById, removeMessageGroup, removeMessagesFromGroup, removeMessagesFromGroup, setExpiryCallbacks, setGroupCondition, setLastReleasedSequenceNumberForGroup, setLazyLoadMessageGroups, setLockRegistry, setTimeoutOnIdleクラス AbstractBatchingMessageGroupStore から継承されたメソッド
getRemoveBatchSize, setMessageGroupFactory, setRemoveBatchSizeクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース BasicMessageGroupStore から継承されたメソッド
getMessageGroupインターフェース IterableSE から継承されたメソッド
forEachSE, spliteratorインターフェース MessageGroupStore から継承されたメソッド
getGroupMetadata, getMessageFromGroup, getOneMessageFromGroup, streamMessagesForGroup
フィールドの詳細
SEQUENCE_NAME
- 関連事項:
logger
protected final org.apache.commons.logging.Log loggercollectionName
mongoDbFactory
コンストラクターの詳細
AbstractConfigurableMongoDbMessageStore
public AbstractConfigurableMongoDbMessageStore(MongoTemplate mongoTemplate, StringSE collectionName) AbstractConfigurableMongoDbMessageStore
public AbstractConfigurableMongoDbMessageStore(MongoDatabaseFactory mongoDbFactory, StringSE collectionName) AbstractConfigurableMongoDbMessageStore
public AbstractConfigurableMongoDbMessageStore(MongoDatabaseFactory mongoDbFactory, @Nullable MappingMongoConverter mappingMongoConverter, StringSE collectionName)
方法の詳細
setCreateIndexes
public void setCreateIndexes(boolean createIndexes) インデックスを自動作成するかどうかのオプションを定義します。- パラメーター:
createIndexes- ブール値。- 導入:
- 6.0.8.
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAware内のsetApplicationContext - 例外:
BeansException
getMongoTemplate
getMappingMongoConverter
getApplicationContext
getMessageBuilderFactory
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBean内のafterPropertiesSet
createIndexes
protected void createIndexes()getMessage
getMessageMetadata
doRemoveMessageGroup
- 次で指定:
- クラス
AbstractMessageGroupStoreのdoRemoveMessageGroup
messageGroupSize
インターフェースからコピーされた説明:BasicMessageGroupStoreこの MessageGroup のサイズを返します。- 次で指定:
- インターフェース
BasicMessageGroupStore内のmessageGroupSize - パラメーター:
groupId- グループ識別子。- 戻り値:
- サイズ。
getNextId
protected long getNextId()MessageDocumentsequenceを含むドキュメントに対して MongoDBINC操作を実行し、新しいMessageDocumentの新しい増分値を返します。SEQUENCE_NAMEドキュメントはオンデマンドで作成されます。- 戻り値:
- 次のシーケンス値。
addMessageDocument
groupIdQuery
doRemoveMessagesFromGroup
- 次で指定:
- クラス
AbstractMessageGroupStoreのdoRemoveMessagesFromGroup
doSetGroupCondition
- 次で指定:
- クラス
AbstractMessageGroupStoreのdoSetGroupCondition
doSetLastReleasedSequenceNumberForGroup
iterator
- 次で指定:
- インターフェース
IterableSE<MessageGroup>内のiterator - 次で指定:
- インターフェース
MessageGroupStore内のiterator - 戻り値:
- 現在累積されている
MessageGroupの反復子。
doCompleteGroup
- 次で指定:
- クラス
AbstractMessageGroupStoreのdoCompleteGroup
doAddMessagesToGroup
- 次で指定:
- クラス
AbstractMessageGroupStoreのdoAddMessagesToGroup
getMessagesForGroup
インターフェースからコピーされた説明:MessageGroupStore指定されたグループ ID のメッセージを取得します。- 次で指定:
- インターフェース
MessageGroupStore内のgetMessagesForGroup - パラメーター:
groupId- メッセージを取得するグループ ID。- 戻り値:
- グループのメッセージ。