Interface LockIdentityProvider


@DefaultImplementation(io.micronaut.kubernetes.client.openapi.operator.leaderelection.DefaultLockIdentityProvider.class) public interface LockIdentityProvider
Provides the lock identity which is used to uniquely identifies the application for the leader election process. Every replica of the application needs to have unique identity.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull String
    Get the lock identity.
  • Method Details

    • getIdentity

      @NonNull @NonNull String getIdentity()
      Get the lock identity.
      Returns:
      the lock identity.