Class InMemoryDOMDataStoreConfigPropertiesBuilder
- java.lang.Object
-
- org.opendaylight.mdsal.dom.store.inmemory.InMemoryDOMDataStoreConfigPropertiesBuilder
-
@Generated("org.immutables.processor.ProxyProcessor") public final class InMemoryDOMDataStoreConfigPropertiesBuilder extends Object
Builds instances of typeInMemoryDOMDataStoreConfigProperties
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.InMemoryDOMDataStoreConfigPropertiesBuilder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Constructor Summary
Constructors Constructor Description InMemoryDOMDataStoreConfigPropertiesBuilder()
Creates a builder forInMemoryDOMDataStoreConfigProperties
instances.
-
Method Summary
-
-
-
Constructor Detail
-
InMemoryDOMDataStoreConfigPropertiesBuilder
public InMemoryDOMDataStoreConfigPropertiesBuilder()
Creates a builder forInMemoryDOMDataStoreConfigProperties
instances.new InMemoryDOMDataStoreConfigPropertiesBuilder() .debugTransactions(boolean) // optional
debugTransactions
.maxDataChangeExecutorQueueSize(int) // optionalmaxDataChangeExecutorQueueSize
.maxDataChangeExecutorPoolSize(int) // optionalmaxDataChangeExecutorPoolSize
.maxDataChangeListenerQueueSize(int) // optionalmaxDataChangeListenerQueueSize
.maxDataStoreExecutorQueueSize(int) // optionalmaxDataStoreExecutorQueueSize
.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final InMemoryDOMDataStoreConfigPropertiesBuilder from(InMemoryDOMDataStoreConfigProperties instance)
Fill a builder with attribute values from the providedInMemoryDOMDataStoreConfigProperties
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
debugTransactions
@CanIgnoreReturnValue public final InMemoryDOMDataStoreConfigPropertiesBuilder debugTransactions(boolean debugTransactions)
Initializes the value for thedebugTransactions
attribute.If not set, this attribute will have a default value as returned by the initializer of
debugTransactions
.- Parameters:
debugTransactions
- The value for debugTransactions- Returns:
this
builder for use in a chained invocation
-
maxDataChangeExecutorQueueSize
@CanIgnoreReturnValue public final InMemoryDOMDataStoreConfigPropertiesBuilder maxDataChangeExecutorQueueSize(int maxDataChangeExecutorQueueSize)
Initializes the value for themaxDataChangeExecutorQueueSize
attribute.If not set, this attribute will have a default value as returned by the initializer of
maxDataChangeExecutorQueueSize
.- Parameters:
maxDataChangeExecutorQueueSize
- The value for maxDataChangeExecutorQueueSize- Returns:
this
builder for use in a chained invocation
-
maxDataChangeExecutorPoolSize
@CanIgnoreReturnValue public final InMemoryDOMDataStoreConfigPropertiesBuilder maxDataChangeExecutorPoolSize(int maxDataChangeExecutorPoolSize)
Initializes the value for themaxDataChangeExecutorPoolSize
attribute.If not set, this attribute will have a default value as returned by the initializer of
maxDataChangeExecutorPoolSize
.- Parameters:
maxDataChangeExecutorPoolSize
- The value for maxDataChangeExecutorPoolSize- Returns:
this
builder for use in a chained invocation
-
maxDataChangeListenerQueueSize
@CanIgnoreReturnValue public final InMemoryDOMDataStoreConfigPropertiesBuilder maxDataChangeListenerQueueSize(int maxDataChangeListenerQueueSize)
Initializes the value for themaxDataChangeListenerQueueSize
attribute.If not set, this attribute will have a default value as returned by the initializer of
maxDataChangeListenerQueueSize
.- Parameters:
maxDataChangeListenerQueueSize
- The value for maxDataChangeListenerQueueSize- Returns:
this
builder for use in a chained invocation
-
maxDataStoreExecutorQueueSize
@CanIgnoreReturnValue public final InMemoryDOMDataStoreConfigPropertiesBuilder maxDataStoreExecutorQueueSize(int maxDataStoreExecutorQueueSize)
Initializes the value for themaxDataStoreExecutorQueueSize
attribute.If not set, this attribute will have a default value as returned by the initializer of
maxDataStoreExecutorQueueSize
.- Parameters:
maxDataStoreExecutorQueueSize
- The value for maxDataStoreExecutorQueueSize- Returns:
this
builder for use in a chained invocation
-
build
public InMemoryDOMDataStoreConfigProperties build()
Builds a newInMemoryDOMDataStoreConfigProperties
.- Returns:
- An immutable instance of InMemoryDOMDataStoreConfigProperties
- Throws:
IllegalStateException
- if any required attributes are missing
-
-