Interface NativeEosService

  • All Known Implementing Classes:
    AkkaEntityOwnershipService

    @Beta
    public interface NativeEosService
    Service used to bring up/down the NativeEos service in individual datacenters. Active datacenter in native eos terms means that the candidates from this datacenter can become owners of entities. Additionally the singleton component makings ownership decisions, runs only in an active datacenter.

    Caller must make sure that only one datacenter is active at a time, otherwise the singleton actors in each datacenter will interfere with each other. The methods provided byt this service can be called on any node from the datacenter to be activated. Datacenters only need to brought up when using non-default datacenter or multiple datacenters.

    • Method Detail

      • activateDataCenter

        ListenableFuture<Void> activateDataCenter()
        Activates the native eos service in the datacenter that this method is called.
      • deactivateDataCenter

        ListenableFuture<Void> deactivateDataCenter()
        Deactivates the native eos service in the datacenter that this method is called.