public static class

ResourceConfig.Delta

extends Object
java.lang.Object
   ↳ org.apache.helix.api.config.ResourceConfig.Delta

Class Overview

Update context for a ResourceConfig

Summary

Public Constructors
ResourceConfig.Delta(ResourceId resourceId)
Instantiate the delta for a resource config
Public Methods
ResourceConfig mergeInto(ResourceConfig orig)
Create a ResourceConfig that is the combination of an existing ResourceConfig and this delta
ResourceConfig.Delta setBatchMessageMode(boolean batchMessageMode)
Set the batch message mode
ResourceConfig.Delta setBucketSize(int bucketSize)
Set the bucket size
ResourceConfig.Delta setRebalancerConfig(RebalancerConfig config)
Set the rebalancer configuration
ResourceConfig.Delta setType(ResourceConfig.ResourceType type)
Set the type of this resource
ResourceConfig.Delta setUserConfig(UserConfig userConfig)
Set the user configuration
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ResourceConfig.Delta (ResourceId resourceId)

Instantiate the delta for a resource config

Parameters
resourceId the resource to update

Public Methods

public ResourceConfig mergeInto (ResourceConfig orig)

Create a ResourceConfig that is the combination of an existing ResourceConfig and this delta

Parameters
orig the original ResourceConfig
Returns
  • updated ResourceConfig

public ResourceConfig.Delta setBatchMessageMode (boolean batchMessageMode)

Set the batch message mode

Parameters
batchMessageMode true to enable, false to disable
Returns
  • Delta

public ResourceConfig.Delta setBucketSize (int bucketSize)

Set the bucket size

Parameters
bucketSize the size to use
Returns
  • Delta

public ResourceConfig.Delta setRebalancerConfig (RebalancerConfig config)

Set the rebalancer configuration

Parameters
config properties of interest for rebalancing
Returns
  • Delta

public ResourceConfig.Delta setType (ResourceConfig.ResourceType type)

Set the type of this resource

Parameters
type ResourceType
Returns
  • Delta

public ResourceConfig.Delta setUserConfig (UserConfig userConfig)

Set the user configuration

Parameters
userConfig user-specified properties
Returns
  • Delta