public class

MessageConstraintItemBuilder

extends Object
java.lang.Object
   ↳ org.apache.helix.model.builder.MessageConstraintItemBuilder

Class Overview

Specify a ConstraintItem based on a message (commonly used for transition constraints)

Summary

Public Constructors
MessageConstraintItemBuilder()
Instantiate the builder
Public Methods
ConstraintItem build()
Get the ConstraintItem instance that is built
MessageConstraintItemBuilder constraintValue(String value)
Set the value of the constraint
MessageConstraintItemBuilder messageType(Message.MessageType messageType)
Set the message type of the constraint
MessageConstraintItemBuilder participant(ParticipantId participantId)
Set a participant as part of the constraint scope
MessageConstraintItemBuilder resource(ResourceId resourceId)
Set a resource as part of the constraint scope
MessageConstraintItemBuilder transition(Transition transition)
Set the transition to constrain for transition message types
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MessageConstraintItemBuilder ()

Instantiate the builder

Public Methods

public ConstraintItem build ()

Get the ConstraintItem instance that is built

Returns
  • ConstraintItem

public MessageConstraintItemBuilder constraintValue (String value)

Set the value of the constraint

Parameters
value constraint value
Returns
  • MessageConstraintItemBuilder

public MessageConstraintItemBuilder messageType (Message.MessageType messageType)

Set the message type of the constraint

Parameters
messageType message type
Returns
  • MessageConstraintItemBuilder

public MessageConstraintItemBuilder participant (ParticipantId participantId)

Set a participant as part of the constraint scope

Parameters
participantId the participant to constrain
Returns
  • MessageConstraintItemBuilder

public MessageConstraintItemBuilder resource (ResourceId resourceId)

Set a resource as part of the constraint scope

Parameters
resourceId the resource to constrain
Returns
  • MessageConstraintItemBuilder

public MessageConstraintItemBuilder transition (Transition transition)

Set the transition to constrain for transition message types

Parameters
transition the transition to constrain
Returns
  • MessageConstraintItemBuilder