public class DistributedLockType extends Object implements PrimitiveType<DistributedLockBuilder,DistributedLockConfig,DistributedLock>
| Constructor and Description |
|---|
DistributedLockType() |
| Modifier and Type | Method and Description |
|---|---|
static DistributedLockType |
instance()
Returns a new distributed lock type.
|
String |
name()
Returns the object name.
|
DistributedLockBuilder |
newBuilder(String name,
DistributedLockConfig config,
PrimitiveManagementService managementService)
Returns a new primitive builder.
|
DistributedLockConfig |
newConfig()
Returns a new instance of the primitive configuration.
|
PrimitiveResource |
newResource(DistributedLock primitive)
Creates a new resource for the given primitive.
|
PrimitiveService |
newService(ServiceConfig config)
Creates a new service instance from the given configuration.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitnamespacepublic static DistributedLockType instance()
public PrimitiveService newService(ServiceConfig config)
PrimitiveTypenewService in interface PrimitiveType<DistributedLockBuilder,DistributedLockConfig,DistributedLock>config - the service configurationpublic PrimitiveResource newResource(DistributedLock primitive)
PrimitiveTypenewResource in interface PrimitiveType<DistributedLockBuilder,DistributedLockConfig,DistributedLock>primitive - the primitive instancepublic DistributedLockConfig newConfig()
PrimitiveTypenewConfig in interface PrimitiveType<DistributedLockBuilder,DistributedLockConfig,DistributedLock>newConfig in interface ConfiguredType<DistributedLockConfig>public DistributedLockBuilder newBuilder(String name, DistributedLockConfig config, PrimitiveManagementService managementService)
PrimitiveTypenewBuilder in interface PrimitiveType<DistributedLockBuilder,DistributedLockConfig,DistributedLock>name - the primitive nameconfig - the primitive configurationmanagementService - the primitive management serviceCopyright © 2013–2018. All rights reserved.