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
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<OpenflowProviderConfig>
,org.opendaylight.yangtools.concepts.CheckedBuilder<OpenflowProviderConfig,IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
@Generated("mdsal-binding-generator") public class OpenflowProviderConfigBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OpenflowProviderConfig>
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
,Builder
-
-
Constructor Summary
Constructors Constructor Description OpenflowProviderConfigBuilder()
OpenflowProviderConfigBuilder(OpenflowProviderConfig base)
-
Method Summary
-
-
-
Constructor Detail
-
OpenflowProviderConfigBuilder
public OpenflowProviderConfigBuilder()
-
OpenflowProviderConfigBuilder
public OpenflowProviderConfigBuilder(OpenflowProviderConfig base)
-
-
Method Detail
-
getBarrierCountLimit
public NonZeroUint16Type getBarrierCountLimit()
-
getBarrierIntervalTimeoutLimit
public NonZeroUint32Type getBarrierIntervalTimeoutLimit()
-
getBasicTimerDelay
public NonZeroUint32Type getBasicTimerDelay()
-
getDeviceConnectionHoldTimeInSeconds
public org.opendaylight.yangtools.yang.common.Uint16 getDeviceConnectionHoldTimeInSeconds()
-
getDeviceConnectionRateLimitPerMin
public org.opendaylight.yangtools.yang.common.Uint16 getDeviceConnectionRateLimitPerMin()
-
getDeviceDatastoreRemovalDelay
public NonZeroUint32Type getDeviceDatastoreRemovalDelay()
-
getEchoReplyTimeout
public NonZeroUint32Type getEchoReplyTimeout()
-
getEnableEqualRole
public Boolean getEnableEqualRole()
-
getEnableFlowRemovedNotification
public Boolean getEnableFlowRemovedNotification()
-
getGlobalNotificationQuota
public org.opendaylight.yangtools.yang.common.Uint32 getGlobalNotificationQuota()
-
getIsFlowStatisticsPollingOn
public Boolean getIsFlowStatisticsPollingOn()
-
getIsGroupStatisticsPollingOn
public Boolean getIsGroupStatisticsPollingOn()
-
getIsMeterStatisticsPollingOn
public Boolean getIsMeterStatisticsPollingOn()
-
getIsPortStatisticsPollingOn
public Boolean getIsPortStatisticsPollingOn()
-
getIsQueueStatisticsPollingOn
public Boolean getIsQueueStatisticsPollingOn()
-
getIsStatisticsPollingOn
public Boolean getIsStatisticsPollingOn()
-
getIsStatisticsRpcEnabled
public Boolean getIsStatisticsRpcEnabled()
-
getIsTableStatisticsPollingOn
public Boolean getIsTableStatisticsPollingOn()
-
getMaximumTimerDelay
public NonZeroUint32Type getMaximumTimerDelay()
-
getRpcRequestsQuota
public NonZeroUint16Type getRpcRequestsQuota()
-
getSkipTableFeatures
public Boolean getSkipTableFeatures()
-
getSwitchFeaturesMandatory
public Boolean getSwitchFeaturesMandatory()
-
getThreadPoolMaxThreads
public NonZeroUint16Type getThreadPoolMaxThreads()
-
getThreadPoolMinThreads
public org.opendaylight.yangtools.yang.common.Uint16 getThreadPoolMinThreads()
-
getThreadPoolTimeout
public org.opendaylight.yangtools.yang.common.Uint32 getThreadPoolTimeout()
-
getUseSingleLayerSerialization
public Boolean getUseSingleLayerSerialization()
-
augmentation
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig>> E$$ augmentation(Class<E$$> augmentationType)
-
setBarrierCountLimit
public OpenflowProviderConfigBuilder setBarrierCountLimit(NonZeroUint16Type value)
-
setBarrierIntervalTimeoutLimit
public OpenflowProviderConfigBuilder setBarrierIntervalTimeoutLimit(NonZeroUint32Type value)
-
setBasicTimerDelay
public OpenflowProviderConfigBuilder setBasicTimerDelay(NonZeroUint32Type value)
-
setDeviceConnectionHoldTimeInSeconds
public OpenflowProviderConfigBuilder setDeviceConnectionHoldTimeInSeconds(org.opendaylight.yangtools.yang.common.Uint16 value)
-
setDeviceConnectionRateLimitPerMin
public OpenflowProviderConfigBuilder setDeviceConnectionRateLimitPerMin(org.opendaylight.yangtools.yang.common.Uint16 value)
-
setDeviceDatastoreRemovalDelay
public OpenflowProviderConfigBuilder setDeviceDatastoreRemovalDelay(NonZeroUint32Type value)
-
setEchoReplyTimeout
public OpenflowProviderConfigBuilder setEchoReplyTimeout(NonZeroUint32Type value)
-
setEnableEqualRole
public OpenflowProviderConfigBuilder setEnableEqualRole(Boolean value)
-
setEnableFlowRemovedNotification
public OpenflowProviderConfigBuilder setEnableFlowRemovedNotification(Boolean value)
-
setGlobalNotificationQuota
public OpenflowProviderConfigBuilder setGlobalNotificationQuota(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setIsFlowStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsFlowStatisticsPollingOn(Boolean value)
-
setIsGroupStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsGroupStatisticsPollingOn(Boolean value)
-
setIsMeterStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsMeterStatisticsPollingOn(Boolean value)
-
setIsPortStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsPortStatisticsPollingOn(Boolean value)
-
setIsQueueStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsQueueStatisticsPollingOn(Boolean value)
-
setIsStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsStatisticsPollingOn(Boolean value)
-
setIsStatisticsRpcEnabled
public OpenflowProviderConfigBuilder setIsStatisticsRpcEnabled(Boolean value)
-
setIsTableStatisticsPollingOn
public OpenflowProviderConfigBuilder setIsTableStatisticsPollingOn(Boolean value)
-
setMaximumTimerDelay
public OpenflowProviderConfigBuilder setMaximumTimerDelay(NonZeroUint32Type value)
-
setRpcRequestsQuota
public OpenflowProviderConfigBuilder setRpcRequestsQuota(NonZeroUint16Type value)
-
setSkipTableFeatures
public OpenflowProviderConfigBuilder setSkipTableFeatures(Boolean value)
-
setSwitchFeaturesMandatory
public OpenflowProviderConfigBuilder setSwitchFeaturesMandatory(Boolean value)
-
setThreadPoolMaxThreads
public OpenflowProviderConfigBuilder setThreadPoolMaxThreads(NonZeroUint16Type value)
-
setThreadPoolMinThreads
public OpenflowProviderConfigBuilder setThreadPoolMinThreads(org.opendaylight.yangtools.yang.common.Uint16 value)
-
setThreadPoolTimeout
public OpenflowProviderConfigBuilder setThreadPoolTimeout(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setUseSingleLayerSerialization
public OpenflowProviderConfigBuilder setUseSingleLayerSerialization(Boolean value)
-
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 OpenflowProviderConfig build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<OpenflowProviderConfig>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<OpenflowProviderConfig,IllegalArgumentException>
-
-