Package com.github.ddth.dlock.impl.inmem
Class InmemDLockFactory
- java.lang.Object
-
- com.github.ddth.dlock.impl.AbstractDLockFactory
-
- com.github.ddth.dlock.impl.inmem.InmemDLockFactory
-
- All Implemented Interfaces:
IDLockFactory,AutoCloseable
public class InmemDLockFactory extends AbstractDLockFactory
In-memory implementation ofIDLockFactorythat createsInmemDLockobjects.- Since:
- 0.1.0
- Author:
- Thanh Ba Nguyen
-
-
Constructor Summary
Constructors Constructor Description InmemDLockFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InmemDLockcreateLock(String name)Create a new lock.protected InmemDLockcreateLockInternal(String name, Properties lockProps)Create a new lock instance, but does not initialize it.-
Methods inherited from class com.github.ddth.dlock.impl.AbstractDLockFactory
buildLockName, close, createAndInitLockInstance, destroy, getLockNamePrefix, getLockProperties, getLockPropertiesMap, init, setLockNamePrefix, setLockProperties
-
-
-
-
Method Detail
-
createLock
public InmemDLock createLock(String name)
Create a new lock.- Specified by:
createLockin interfaceIDLockFactory- Overrides:
createLockin classAbstractDLockFactory- Returns:
- Since:
- 0.1.2
-
createLockInternal
protected InmemDLock createLockInternal(String name, Properties lockProps)
Create a new lock instance, but does not initialize it. Convenient method for sub-class to override.- Specified by:
createLockInternalin classAbstractDLockFactory- Returns:
-
-