public class

HelixStateTransitionHandler

extends MessageHandler
java.lang.Object
   ↳ org.apache.helix.messaging.handling.MessageHandler
     ↳ org.apache.helix.messaging.handling.HelixStateTransitionHandler

Summary

Nested Classes
class HelixStateTransitionHandler.HelixStateMismatchException  
[Expand]
Inherited Fields
From class org.apache.helix.messaging.handling.MessageHandler
Public Constructors
HelixStateTransitionHandler(StateModelFactory<? extends StateModel> stateModelFactory, StateModel stateModel, Message message, NotificationContext context, CurrentState currentStateDelta)
Public Methods
HelixTaskResult handleMessage()
Message handling routine.
void onError(Exception e, MessageHandler.ErrorCode code, MessageHandler.ErrorType type)
Callback when error happens in the message handling pipeline.
void onTimeout()
Callback when the framework is about to interrupt the message handler
[Expand]
Inherited Methods
From class org.apache.helix.messaging.handling.MessageHandler
From class java.lang.Object

Public Constructors

public HelixStateTransitionHandler (StateModelFactory<? extends StateModel> stateModelFactory, StateModel stateModel, Message message, NotificationContext context, CurrentState currentStateDelta)

Public Methods

public HelixTaskResult handleMessage ()

Message handling routine. The function is called in a thread pool task in CMTaskExecutor

Returns
  • returns the CMTaskResult which contains info about the message processing.

public void onError (Exception e, MessageHandler.ErrorCode code, MessageHandler.ErrorType type)

Callback when error happens in the message handling pipeline.

Parameters
type TODO

public void onTimeout ()

Callback when the framework is about to interrupt the message handler