public class SimpleIdAllocator extends Object implements ModelInstanceResourceAllocator
ModelInstanceResourceAllocator
.
It allocates maximum ids for values.
This allocator should not be used for model instances from which detached copies are created.Constructor and Description |
---|
SimpleIdAllocator()
Creates new instances.
|
Modifier and Type | Method and Description |
---|---|
AllocatedModelInstanceResources |
allocateDetachmentAndValueIds(ModelInstance modelInstance)
Allocates next id for detachment in the model instance.
|
AllocatedModelInstanceResources |
allocateValueIds(ModelInstance modelInstance)
Allocates new range of ids for values in the model instance.
|
long |
getAllocationSize()
Returns allocation size for value ids.
|
public long getAllocationSize()
ModelInstanceResourceAllocator
getAllocationSize
in interface ModelInstanceResourceAllocator
public AllocatedModelInstanceResources allocateValueIds(ModelInstance modelInstance)
ModelInstanceResourceAllocator
allocateValueIds
in interface ModelInstanceResourceAllocator
public AllocatedModelInstanceResources allocateDetachmentAndValueIds(ModelInstance modelInstance)
ModelInstanceResourceAllocator
allocateDetachmentAndValueIds
in interface ModelInstanceResourceAllocator
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.