View Source ProcessHub.Strategy.Migration.HotSwapBehaviour behaviour (ProcessHub v0.4.0-beta)

This module defines the behaviour for the hot swap migration strategy. It provides the necessary callbacks that must be implemented by the processes that use this strategy.

Summary

Callbacks

Link to this callback

alter_handover_state(current_state, handover_state)

View Source
@callback alter_handover_state(current_state :: term(), handover_state :: term()) ::
  term()
Link to this callback

prepare_handover_state(state)

View Source
@callback prepare_handover_state(state :: term()) :: term()