public static class

ResourceConfig.Builder

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

Class Overview

Assembles a ResourceConfig

Summary

Public Constructors
ResourceConfig.Builder(ResourceId id)
Build a Resource with an id
Public Methods
ResourceConfig.Builder batchMessageMode(boolean batchMessageMode)
Set the batch message mode
ResourceConfig.Builder bucketSize(int bucketSize)
Set the bucket size
ResourceConfig build()
Create a Resource object
ResourceConfig.Builder rebalancerContext(RebalancerContext rebalancerContext)
Set the rebalancer configuration
ResourceConfig.Builder schedulerTaskConfig(SchedulerTaskConfig schedulerTaskConfig)
ResourceConfig.Builder type(ResourceConfig.ResourceType type)
Set the type of this resource
ResourceConfig.Builder userConfig(UserConfig userConfig)
Set the user configuration
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ResourceConfig.Builder (ResourceId id)

Build a Resource with an id

Parameters
id resource id

Public Methods

public ResourceConfig.Builder batchMessageMode (boolean batchMessageMode)

Set the batch message mode

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

public ResourceConfig.Builder bucketSize (int bucketSize)

Set the bucket size

Parameters
bucketSize the size to use
Returns
  • Builder

public ResourceConfig build ()

Create a Resource object

Returns
  • instantiated Resource

public ResourceConfig.Builder rebalancerContext (RebalancerContext rebalancerContext)

Set the rebalancer configuration

Parameters
rebalancerContext properties of interest for rebalancing
Returns
  • Builder

public ResourceConfig.Builder schedulerTaskConfig (SchedulerTaskConfig schedulerTaskConfig)

public ResourceConfig.Builder type (ResourceConfig.ResourceType type)

Set the type of this resource

Parameters
type ResourceType
Returns
  • Builder

public ResourceConfig.Builder userConfig (UserConfig userConfig)

Set the user configuration

Parameters
userConfig user-specified properties
Returns
  • Builder