public class DefaultEventSourceConfiguration extends java.lang.Object implements StoreEventSourceConfiguration<java.lang.Integer>
DEFAULT_DISPATCHER_CONCURRENCY
Constructor and Description |
---|
DefaultEventSourceConfiguration(int dispatcherConcurrency)
Creates a new configuration with the provided dispatcher concurrency for ordered events.
|
Modifier and Type | Method and Description |
---|---|
DefaultEventSourceConfiguration |
build(java.lang.Integer concurrency)
Construct a new configuration from the given detached representation.
|
java.lang.Integer |
derive()
Derive a detached representation from this configuration
|
int |
getDispatcherConcurrency()
Indicates over how many buckets should ordered events be spread
|
java.lang.Class<Store.Provider> |
getServiceType()
Indicates which service this configuration works with.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compatibleWith
public DefaultEventSourceConfiguration(int dispatcherConcurrency)
dispatcherConcurrency
- the dispatcher concurrency for ordered eventspublic int getDispatcherConcurrency()
getDispatcherConcurrency
in interface StoreEventSourceConfiguration<java.lang.Integer>
public java.lang.Class<Store.Provider> getServiceType()
getServiceType
in interface ServiceConfiguration<Store.Provider,java.lang.Integer>
public java.lang.Integer derive()
ServiceConfiguration
derive
in interface ServiceConfiguration<Store.Provider,java.lang.Integer>
public DefaultEventSourceConfiguration build(java.lang.Integer concurrency)
ServiceConfiguration
build
in interface ServiceConfiguration<Store.Provider,java.lang.Integer>
concurrency
- a detached representation