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>
public class OpenflowProviderConfigBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OpenflowProviderConfig>
Class that buildsOpenflowProviderConfigBuilder
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:
OpenflowProviderConfigBuilder createTarget(int fooXyzzy, int barBaz) { return new OpenflowProviderConfigBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of OpenflowProviderConfigBuilder, 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 oportunities, 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:
OpenflowProviderConfigBuilder
,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()
-
getGlobalNotificationQuota
public org.opendaylight.yangtools.yang.common.Uint32 getGlobalNotificationQuota()
-
getMaximumTimerDelay
public NonZeroUint32Type getMaximumTimerDelay()
-
getRpcRequestsQuota
public NonZeroUint16Type getRpcRequestsQuota()
-
getThreadPoolMaxThreads
public NonZeroUint16Type getThreadPoolMaxThreads()
-
getThreadPoolMinThreads
public org.opendaylight.yangtools.yang.common.Uint16 getThreadPoolMinThreads()
-
getThreadPoolTimeout
public org.opendaylight.yangtools.yang.common.Uint32 getThreadPoolTimeout()
-
isEnableCustomTrustManager
public Boolean isEnableCustomTrustManager()
-
isEnableEqualRole
public Boolean isEnableEqualRole()
-
isEnableFlowRemovedNotification
public Boolean isEnableFlowRemovedNotification()
-
isIsFlowStatisticsPollingOn
public Boolean isIsFlowStatisticsPollingOn()
-
isIsGroupStatisticsPollingOn
public Boolean isIsGroupStatisticsPollingOn()
-
isIsMeterStatisticsPollingOn
public Boolean isIsMeterStatisticsPollingOn()
-
isIsPortStatisticsPollingOn
public Boolean isIsPortStatisticsPollingOn()
-
isIsQueueStatisticsPollingOn
public Boolean isIsQueueStatisticsPollingOn()
-
isIsStatisticsPollingOn
public Boolean isIsStatisticsPollingOn()
-
isIsStatisticsRpcEnabled
public Boolean isIsStatisticsRpcEnabled()
-
isIsTableStatisticsPollingOn
public Boolean isIsTableStatisticsPollingOn()
-
isSkipTableFeatures
public Boolean isSkipTableFeatures()
-
isSwitchFeaturesMandatory
public Boolean isSwitchFeaturesMandatory()
-
isUseSingleLayerSerialization
public Boolean isUseSingleLayerSerialization()
-
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)
-
setDeviceConnectionHoldTimeInSeconds
@Deprecated(forRemoval=true) public OpenflowProviderConfigBuilder setDeviceConnectionHoldTimeInSeconds(Integer value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setDeviceConnectionHoldTimeInSeconds(Uint16)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setDeviceConnectionRateLimitPerMin
public OpenflowProviderConfigBuilder setDeviceConnectionRateLimitPerMin(org.opendaylight.yangtools.yang.common.Uint16 value)
-
setDeviceConnectionRateLimitPerMin
@Deprecated(forRemoval=true) public OpenflowProviderConfigBuilder setDeviceConnectionRateLimitPerMin(Integer value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setDeviceConnectionRateLimitPerMin(Uint16)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setDeviceDatastoreRemovalDelay
public OpenflowProviderConfigBuilder setDeviceDatastoreRemovalDelay(NonZeroUint32Type value)
-
setEchoReplyTimeout
public OpenflowProviderConfigBuilder setEchoReplyTimeout(NonZeroUint32Type value)
-
setGlobalNotificationQuota
public OpenflowProviderConfigBuilder setGlobalNotificationQuota(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setGlobalNotificationQuota
@Deprecated(forRemoval=true) public OpenflowProviderConfigBuilder setGlobalNotificationQuota(Long value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setGlobalNotificationQuota(Uint32)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setMaximumTimerDelay
public OpenflowProviderConfigBuilder setMaximumTimerDelay(NonZeroUint32Type value)
-
setRpcRequestsQuota
public OpenflowProviderConfigBuilder setRpcRequestsQuota(NonZeroUint16Type value)
-
setThreadPoolMaxThreads
public OpenflowProviderConfigBuilder setThreadPoolMaxThreads(NonZeroUint16Type value)
-
setThreadPoolMinThreads
public OpenflowProviderConfigBuilder setThreadPoolMinThreads(org.opendaylight.yangtools.yang.common.Uint16 value)
-
setThreadPoolMinThreads
@Deprecated(forRemoval=true) public OpenflowProviderConfigBuilder setThreadPoolMinThreads(Integer value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setThreadPoolMinThreads(Uint16)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setThreadPoolTimeout
public OpenflowProviderConfigBuilder setThreadPoolTimeout(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setThreadPoolTimeout
@Deprecated(forRemoval=true) public OpenflowProviderConfigBuilder setThreadPoolTimeout(Long value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setThreadPoolTimeout(Uint32)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setEnableCustomTrustManager
public OpenflowProviderConfigBuilder setEnableCustomTrustManager(Boolean value)
-
setEnableEqualRole
public OpenflowProviderConfigBuilder setEnableEqualRole(Boolean value)
-
setEnableFlowRemovedNotification
public OpenflowProviderConfigBuilder setEnableFlowRemovedNotification(Boolean 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)
-
setSkipTableFeatures
public OpenflowProviderConfigBuilder setSkipTableFeatures(Boolean value)
-
setSwitchFeaturesMandatory
public OpenflowProviderConfigBuilder setSwitchFeaturesMandatory(Boolean value)
-
setUseSingleLayerSerialization
public OpenflowProviderConfigBuilder setUseSingleLayerSerialization(Boolean value)
-
addAugmentation
public OpenflowProviderConfigBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig> augmentationValue)
-
removeAugmentation
public OpenflowProviderConfigBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OpenflowProviderConfig>> augmentationType)
-
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>
-
-