Class AbstractBatchingMessageGroupStore
java.lang.Object
org.springframework.integration.store.AbstractBatchingMessageGroupStore
- All Implemented Interfaces:
BasicMessageGroupStore
- Direct Known Subclasses:
AbstractMessageGroupStore
public abstract class AbstractBatchingMessageGroupStore extends Object implements BasicMessageGroupStore
- Since:
- 4.2
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
Constructors Constructor Description AbstractBatchingMessageGroupStore() -
Method Summary
Modifier and Type Method Description protected MessageGroupFactorygetMessageGroupFactory()intgetRemoveBatchSize()voidsetMessageGroupFactory(MessageGroupFactory messageGroupFactory)Specify theMessageGroupFactoryto createMessageGroupobject where it is necessary.voidsetRemoveBatchSize(int removeBatchSize)Set the batch size when bulk removing messages from groups for message stores that support batch removal.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.store.BasicMessageGroupStore
addMessageToGroup, getMessageGroup, messageGroupSize, pollMessageFromGroup, removeMessageGroup
-
Constructor Details
-
AbstractBatchingMessageGroupStore
public AbstractBatchingMessageGroupStore()
-
-
Method Details
-
setRemoveBatchSize
public void setRemoveBatchSize(int removeBatchSize)Set the batch size when bulk removing messages from groups for message stores that support batch removal. Default 100.- Parameters:
removeBatchSize- the batch size.- Since:
- 4.2
-
getRemoveBatchSize
public int getRemoveBatchSize() -
setMessageGroupFactory
Specify theMessageGroupFactoryto createMessageGroupobject where it is necessary. Defaults toSimpleMessageGroupFactory.- Parameters:
messageGroupFactory- theMessageGroupFactoryto use.- Since:
- 4.3
-
getMessageGroupFactory
-