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 TypeMethodDescriptionvoid
destroy()
getCache()
final boolean
boolean
obtainLockInstance
(String lockName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isDistributed
in interfacecom.broadleafcommerce.search.index.core.Distributable
-
isLocked
- Specified by:
isLocked
in interfacecom.broadleafcommerce.search.index.core.LockService
-
obtainLockInstance
- Specified by:
obtainLockInstance
in interfacecom.broadleafcommerce.search.index.core.LockService
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
getCache
-