public class

LockFactory

extends HelixStateModelFactory<T extends StateModel>
java.lang.Object
   ↳ org.apache.helix.participant.statemachine.HelixStateModelFactory<T extends org.apache.helix.participant.statemachine.StateModel>
     ↳ org.apache.helix.userdefinedrebalancer.LockFactory

Class Overview

This factory allows a participant to get the appropriate state model callbacks for the lock manager state model. This is used exactly once per participant to get a valid instance of a Lock, and then the same Lock instance is used for all state transition callbacks.

Summary

Public Constructors
LockFactory()
Public Methods
Lock createNewStateModel(PartitionId partitionId)
This method will be invoked only once per partition per session
[Expand]
Inherited Methods
From class org.apache.helix.participant.statemachine.HelixStateModelFactory
From class java.lang.Object

Public Constructors

public LockFactory ()

Public Methods

public Lock createNewStateModel (PartitionId partitionId)

This method will be invoked only once per partition per session