public class SimpleMessageGroupFactory extends Object implements MessageGroupFactory
MessageGroupFactory
implementation to produce SimpleMessageGroup
instances.
The SimpleMessageGroupFactory.GroupType
modificator specifies the internal collection for the SimpleMessageGroup
.
The SimpleMessageGroupFactory.GroupType.HASH_SET
is the default type.Modifier and Type | Class and Description |
---|---|
static class |
SimpleMessageGroupFactory.GroupType |
Constructor and Description |
---|
SimpleMessageGroupFactory() |
SimpleMessageGroupFactory(SimpleMessageGroupFactory.GroupType type) |
Modifier and Type | Method and Description |
---|---|
MessageGroup |
create(Collection<? extends Message<?>> messages,
Object groupId) |
MessageGroup |
create(Collection<? extends Message<?>> messages,
Object groupId,
long timestamp,
boolean complete) |
MessageGroup |
create(Object groupId) |
public SimpleMessageGroupFactory()
public SimpleMessageGroupFactory(SimpleMessageGroupFactory.GroupType type)
public MessageGroup create(Object groupId)
create
in interface MessageGroupFactory
public MessageGroup create(Collection<? extends Message<?>> messages, Object groupId)
create
in interface MessageGroupFactory
public MessageGroup create(Collection<? extends Message<?>> messages, Object groupId, long timestamp, boolean complete)
create
in interface MessageGroupFactory