Interface PartitionContext

All Known Subinterfaces:
PartitionTransitionContext
All Known Implementing Classes:
PartitionStartupAndTransitionContextImpl

public interface PartitionContext
Interface encapsulating all the information about a partition that are needed at runtime (i.e. after the transition to the current role has completed)
  • Method Details

    • getPartitionId

      int getPartitionId()
    • getRaftPartition

      RaftPartition getRaftPartition()
    • notifyListenersOfBecomingLeader

      @Deprecated List<ActorFuture<Void>> notifyListenersOfBecomingLeader(long newTerm)
      Deprecated.
    • notifyListenersOfBecomingFollower

      @Deprecated List<ActorFuture<Void>> notifyListenersOfBecomingFollower(long newTerm)
      Deprecated.
    • notifyListenersOfBecomingInactive

      @Deprecated void notifyListenersOfBecomingInactive()
      Deprecated.
    • getCurrentRole

      RaftServer.Role getCurrentRole()
    • getCurrentTerm

      long getCurrentTerm()
    • getComponentHealthMonitor

      HealthMonitor getComponentHealthMonitor()
    • getStreamProcessor

      StreamProcessor getStreamProcessor()
    • getExporterDirector

      ExporterDirector getExporterDirector()
    • shouldProcess

      boolean shouldProcess()
    • setDiskSpaceAvailable

      @Deprecated void setDiskSpaceAvailable(boolean b)
      Deprecated.
    • getTopologyManager

      TopologyManager getTopologyManager()