public class LockBean extends HekateBaseBean<DistributedLock> implements org.springframework.beans.factory.InitializingBean
DistributedLock
into a Spring context.Constructor and Description |
---|
LockBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
getName()
Returns the lock name (see
setName(String) ). |
DistributedLock |
getObject() |
Class<DistributedLock> |
getObjectType() |
String |
getRegion()
Returns the lock region name (see
setRegion(String) ). |
void |
setName(String name)
Sets the lock name.
|
void |
setRegion(String region)
Sets the name of a lock region.
|
getSource, isSingleton, setBeanFactory, setSource
public DistributedLock getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<DistributedLock>
Exception
public Class<DistributedLock> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<DistributedLock>
public String getName()
setName(String)
).public void setName(String name)
name
- Lock name.LockRegion.get(String)
public String getRegion()
setRegion(String)
).public void setRegion(String region)
region
- Lock region name.LockRegionConfig.setName(String)