Class DefaultLockIdentityProvider
java.lang.Object
io.micronaut.kubernetes.client.operator.leaderelection.DefaultLockIdentityProvider
- All Implemented Interfaces:
LockIdentityProvider
Default implementation of
LockIdentityProvider
which resolves the unique lock identity from the HOSTNAME
environment variable.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultLockIdentityProvider
-
-
Method Details
-
getIdentity
Description copied from interface:LockIdentityProvider
Get the lock identity.- Specified by:
getIdentity
in interfaceLockIdentityProvider
- Returns:
- the lock identity.
-