public static class

HelixMessageScope.Builder

extends Object
java.lang.Object
   ↳ org.apache.helix.resolver.HelixMessageScope.Builder

Class Overview

Creator for a HelixMessageScope

Summary

Public Constructors
HelixMessageScope.Builder()
Public Methods
HelixMessageScope build()
Create the scope
HelixMessageScope.Builder cluster(String cluster)
Associate the scope with a cluster
HelixMessageScope.Builder partition(String partition)
Associate the scope with a partition
HelixMessageScope.Builder resource(String resource)
Associate the scope with a resource
HelixMessageScope.Builder sourceInstance(String sourceInstance)
HelixMessageScope.Builder state(String state)
Associate the scope with a state
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HelixMessageScope.Builder ()

Public Methods

public HelixMessageScope build ()

Create the scope

Returns
  • HelixMessageScope instance corresponding to the built scope

public HelixMessageScope.Builder cluster (String cluster)

Associate the scope with a cluster

Parameters
cluster the cluster to scope routing to
Returns
  • Builder

public HelixMessageScope.Builder partition (String partition)

Associate the scope with a partition

Parameters
partition a specific partition of the scoped resource
Returns
  • Builder

public HelixMessageScope.Builder resource (String resource)

Associate the scope with a resource

Parameters
resource a resource served by the cluster
Returns
  • Builder

public HelixMessageScope.Builder sourceInstance (String sourceInstance)

public HelixMessageScope.Builder state (String state)

Associate the scope with a state

Parameters
state a state that a resource in the cluster can be in
Returns
  • Builder