Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510
Class OpenflowProviderConfigBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfigBuilder
-
@Generated("mdsal-binding-generator") public class OpenflowProviderConfigBuilder extends Object
Class that buildsOpenflowProviderConfig
instances. Overall design of the class is that of a fluent interface, where method chaining is used.In general, this class is supposed to be used like this template:
OpenflowProviderConfig createOpenflowProviderConfig(int fooXyzzy, int barBaz) { return new OpenflowProviderConfigBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of OpenflowProviderConfig, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
- very efficient Java bytecode, as the method invocation result, in this case the Builder reference, is
on the stack, so further method invocations just need to fill method arguments for the next method
invocation, which is terminated by
build()
, which is then returned from the method - better understanding by humans, as the scope of mutable state (the builder) is kept to a minimum and is very localized
- better optimization opportunities, as the object scope is minimized in terms of invocation (rather than method) stack, making escape analysis a lot easier. Given enough compiler (JIT/AOT) prowess, the cost of th builder object can be completely eliminated
- See Also:
OpenflowProviderConfig
- very efficient Java bytecode, as the method invocation result, in this case the Builder reference, is
on the stack, so further method invocations just need to fill method arguments for the next method
invocation, which is terminated by
-
-
Constructor Summary
Constructors Constructor Description OpenflowProviderConfigBuilder()
Construct an empty builder.OpenflowProviderConfigBuilder(OpenflowProviderConfig base)
Construct a builder initialized with state from specifiedOpenflowProviderConfig
.
-
Method Summary
-
-
-
Constructor Detail
-
OpenflowProviderConfigBuilder
public OpenflowProviderConfigBuilder()
Construct an empty builder.
-
OpenflowProviderConfigBuilder
public OpenflowProviderConfigBuilder(OpenflowProviderConfig base)
Construct a builder initialized with state from specifiedOpenflowProviderConfig
.- Parameters:
base
- OpenflowProviderConfig from which the builder should be initialized
-
-
Method Detail
-
getBarrierCountLimit
public NonZeroUint16Type getBarrierCountLimit()
Return current value associated with the property corresponding toOpenflowProviderConfig.getBarrierCountLimit()
.- Returns:
- current value
-
getBarrierIntervalTimeoutLimit
public NonZeroUint32Type getBarrierIntervalTimeoutLimit()
Return current value associated with the property corresponding toOpenflowProviderConfig.getBarrierIntervalTimeoutLimit()
.- Returns:
- current value
-
getBasicTimerDelay
public NonZeroUint32Type getBasicTimerDelay()
Return current value associated with the property corresponding toOpenflowProviderConfig.getBasicTimerDelay()
.- Returns:
- current value
-
getDeviceConnectionHoldTimeInSeconds
public org.opendaylight.yangtools.yang.common.Uint16 getDeviceConnectionHoldTimeInSeconds()
Return current value associated with the property corresponding toOpenflowProviderConfig.getDeviceConnectionHoldTimeInSeconds()
.- Returns:
- current value
-
getDeviceConnectionRateLimitPerMin
public org.opendaylight.yangtools.yang.common.Uint16 getDeviceConnectionRateLimitPerMin()
Return current value associated with the property corresponding toOpenflowProviderConfig.getDeviceConnectionRateLimitPerMin()
.- Returns:
- current value
-
getDeviceDatastoreRemovalDelay
public NonZeroUint32Type getDeviceDatastoreRemovalDelay()
Return current value associated with the property corresponding toOpenflowProviderConfig.getDeviceDatastoreRemovalDelay()
.- Returns:
- current value
-
getEchoReplyTimeout
public NonZeroUint32Type getEchoReplyTimeout()
Return current value associated with the property corresponding toOpenflowProviderConfig.getEchoReplyTimeout()
.- Returns:
- current value
-
getEnableEqualRole
public Boolean getEnableEqualRole()
Return current value associated with the property corresponding toOpenflowProviderConfig.getEnableEqualRole()
.- Returns:
- current value
-
getEnableFlowRemovedNotification
public Boolean getEnableFlowRemovedNotification()
Return current value associated with the property corresponding toOpenflowProviderConfig.getEnableFlowRemovedNotification()
.- Returns:
- current value
-
getGlobalNotificationQuota
public org.opendaylight.yangtools.yang.common.Uint32 getGlobalNotificationQuota()
Return current value associated with the property corresponding toOpenflowProviderConfig.getGlobalNotificationQuota()
.- Returns:
- current value
-
getIsFlowStatisticsPollingOn
public Boolean getIsFlowStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsFlowStatisticsPollingOn()
.- Returns:
- current value
-
getIsGroupStatisticsPollingOn
public Boolean getIsGroupStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsGroupStatisticsPollingOn()
.- Returns:
- current value
-
getIsMeterStatisticsPollingOn
public Boolean getIsMeterStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsMeterStatisticsPollingOn()
.- Returns:
- current value
-
getIsPortStatisticsPollingOn
public Boolean getIsPortStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsPortStatisticsPollingOn()
.- Returns:
- current value
-
getIsQueueStatisticsPollingOn
public Boolean getIsQueueStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsQueueStatisticsPollingOn()
.- Returns:
- current value
-
getIsStatisticsPollingOn
public Boolean getIsStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsStatisticsPollingOn()
.- Returns:
- current value
-
getIsStatisticsRpcEnabled
public Boolean getIsStatisticsRpcEnabled()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsStatisticsRpcEnabled()
.- Returns:
- current value
-
getIsTableStatisticsPollingOn
public Boolean getIsTableStatisticsPollingOn()
Return current value associated with the property corresponding toOpenflowProviderConfig.getIsTableStatisticsPollingOn()
.- Returns:
- current value
-
getMaximumTimerDelay
public NonZeroUint32Type getMaximumTimerDelay()
Return current value associated with the property corresponding toOpenflowProviderConfig.getMaximumTimerDelay()
.- Returns:
- current value
-
getRpcRequestsQuota
public NonZeroUint16Type getRpcRequestsQuota()
Return current value associated with the property corresponding toOpenflowProviderConfig.getRpcRequestsQuota()
.- Returns:
- current value
-
getSkipTableFeatures
public Boolean getSkipTableFeatures()
Return current value associated with the property corresponding toOpenflowProviderConfig.getSkipTableFeatures()
.- Returns:
- current value
-
getSwitchFeaturesMandatory
public Boolean getSwitchFeaturesMandatory()
Return current value associated with the property corresponding toOpenflowProviderConfig.getSwitchFeaturesMandatory()
.- Returns:
- current value
-
getThreadPoolMaxThreads
public NonZeroUint16Type getThreadPoolMaxThreads()
Return current value associated with the property corresponding toOpenflowProviderConfig.getThreadPoolMaxThreads()
.- Returns:
- current value
-
getThreadPoolMinThreads
public org.opendaylight.yangtools.yang.common.Uint16 getThreadPoolMinThreads()
Return current value associated with the property corresponding toOpenflowProviderConfig.getThreadPoolMinThreads()
.- Returns:
- current value
-
getThreadPoolTimeout
public org.opendaylight.yangtools.yang.common.Uint32 getThreadPoolTimeout()
Return current value associated with the property corresponding toOpenflowProviderConfig.getThreadPoolTimeout()
.- Returns:
- current value
-
getUseSingleLayerSerialization
public Boolean getUseSingleLayerSerialization()
Return current value associated with the property corresponding toOpenflowProviderConfig.getUseSingleLayerSerialization()
.- Returns:
- current value
-
augmentation
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig>> E$$ augmentation(Class<E$$> augmentationType)
Return the specified augmentation, if it is present in this builder.- Type Parameters:
E$$
- augmentation type- Parameters:
augmentationType
- augmentation type class- Returns:
- Augmentation object from this builder, or
null
if not present - Throws:
NullPointerException
- ifaugmentType
isnull
-
setBarrierCountLimit
public OpenflowProviderConfigBuilder setBarrierCountLimit(NonZeroUint16Type value)
Set the property corresponding toOpenflowProviderConfig.getBarrierCountLimit()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setBarrierIntervalTimeoutLimit
public OpenflowProviderConfigBuilder setBarrierIntervalTimeoutLimit(NonZeroUint32Type value)
Set the property corresponding toOpenflowProviderConfig.getBarrierIntervalTimeoutLimit()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setBasicTimerDelay
public OpenflowProviderConfigBuilder setBasicTimerDelay(NonZeroUint32Type value)
Set the property corresponding toOpenflowProviderConfig.getBasicTimerDelay()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setDeviceConnectionHoldTimeInSeconds
public OpenflowProviderConfigBuilder setDeviceConnectionHoldTimeInSeconds(org.opendaylight.yangtools.yang.common.Uint16 value)
Set the property corresponding toOpenflowProviderConfig.getDeviceConnectionHoldTimeInSeconds()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setDeviceConnectionRateLimitPerMin
public OpenflowProviderConfigBuilder setDeviceConnectionRateLimitPerMin(org.opendaylight.yangtools.yang.common.Uint16 value)
Set the property corresponding toOpenflowProviderConfig.getDeviceConnectionRateLimitPerMin()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setDeviceDatastoreRemovalDelay
public OpenflowProviderConfigBuilder setDeviceDatastoreRemovalDelay(NonZeroUint32Type value)
Set the property corresponding toOpenflowProviderConfig.getDeviceDatastoreRemovalDelay()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setEchoReplyTimeout
public OpenflowProviderConfigBuilder setEchoReplyTimeout(NonZeroUint32Type value)
Set the property corresponding toOpenflowProviderConfig.getEchoReplyTimeout()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setEnableEqualRole
public OpenflowProviderConfigBuilder setEnableEqualRole(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getEnableEqualRole()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setEnableFlowRemovedNotification
public OpenflowProviderConfigBuilder setEnableFlowRemovedNotification(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getEnableFlowRemovedNotification()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setGlobalNotificationQuota
public OpenflowProviderConfigBuilder setGlobalNotificationQuota(org.opendaylight.yangtools.yang.common.Uint32 value)
Set the property corresponding toOpenflowProviderConfig.getGlobalNotificationQuota()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsFlowStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsFlowStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsFlowStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsGroupStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsGroupStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsGroupStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsMeterStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsMeterStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsMeterStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsPortStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsPortStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsPortStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsQueueStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsQueueStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsQueueStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsStatisticsRpcEnabled
public OpenflowProviderConfigBuilder setIsStatisticsRpcEnabled(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsStatisticsRpcEnabled()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIsTableStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsTableStatisticsPollingOn(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getIsTableStatisticsPollingOn()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setMaximumTimerDelay
public OpenflowProviderConfigBuilder setMaximumTimerDelay(NonZeroUint32Type value)
Set the property corresponding toOpenflowProviderConfig.getMaximumTimerDelay()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setRpcRequestsQuota
public OpenflowProviderConfigBuilder setRpcRequestsQuota(NonZeroUint16Type value)
Set the property corresponding toOpenflowProviderConfig.getRpcRequestsQuota()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setSkipTableFeatures
public OpenflowProviderConfigBuilder setSkipTableFeatures(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getSkipTableFeatures()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setSwitchFeaturesMandatory
public OpenflowProviderConfigBuilder setSwitchFeaturesMandatory(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getSwitchFeaturesMandatory()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setThreadPoolMaxThreads
public OpenflowProviderConfigBuilder setThreadPoolMaxThreads(NonZeroUint16Type value)
Set the property corresponding toOpenflowProviderConfig.getThreadPoolMaxThreads()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setThreadPoolMinThreads
public OpenflowProviderConfigBuilder setThreadPoolMinThreads(org.opendaylight.yangtools.yang.common.Uint16 value)
Set the property corresponding toOpenflowProviderConfig.getThreadPoolMinThreads()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setThreadPoolTimeout
public OpenflowProviderConfigBuilder setThreadPoolTimeout(org.opendaylight.yangtools.yang.common.Uint32 value)
Set the property corresponding toOpenflowProviderConfig.getThreadPoolTimeout()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setUseSingleLayerSerialization
public OpenflowProviderConfigBuilder setUseSingleLayerSerialization(Boolean value)
Set the property corresponding toOpenflowProviderConfig.getUseSingleLayerSerialization()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
addAugmentation
public OpenflowProviderConfigBuilder addAugmentation(org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig> augmentation)
Add an augmentation to this builder's product.- Parameters:
augmentation
- augmentation to be added- Returns:
- this builder
- Throws:
NullPointerException
- ifaugmentation
is null
-
removeAugmentation
public OpenflowProviderConfigBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig>> augmentationType)
Remove an augmentation from this builder's product. If this builder does not track such an augmentation type, this method does nothing.- Parameters:
augmentationType
- augmentation type to be removed- Returns:
- this builder
-
build
public @NonNull OpenflowProviderConfig build()
A newOpenflowProviderConfig
instance.- Returns:
- A new
OpenflowProviderConfig
instance.
-
-