Class IgniteLockService
java.lang.Object
com.broadleafcommerce.search.index.ignite.IgniteLockService
- All Implemented Interfaces:
com.broadleafcommerce.search.index.core.Distributable,com.broadleafcommerce.search.index.core.LockService,org.springframework.beans.factory.DisposableBean
public class IgniteLockService
extends Object
implements com.broadleafcommerce.search.index.core.LockService, org.springframework.beans.factory.DisposableBean
Default implementation of a LockService that provides a distributed Lock mechanism based on
functionality provided by Apache Ignite.
- Author:
- Kelly Tisdell (ktisdell)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIgniteLockService(org.apache.ignite.Ignite ignite, org.apache.ignite.configuration.CacheConfiguration<String, Object> cacheConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getCache()final booleanbooleanobtainLockInstance(String lockName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.search.index.core.LockService
isLocked, lock, obtainLockInstance, unlock
-
Field Details
-
DEFAULT_REINDEX_LOCK_CACHE_NAME
- See Also:
-
-
Constructor Details
-
IgniteLockService
-
-
Method Details
-
isDistributed
public final boolean isDistributed()- Specified by:
isDistributedin interfacecom.broadleafcommerce.search.index.core.Distributable
-
isLocked
- Specified by:
isLockedin interfacecom.broadleafcommerce.search.index.core.LockService
-
obtainLockInstance
- Specified by:
obtainLockInstancein interfacecom.broadleafcommerce.search.index.core.LockService
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
getCache
-