Class DefaultEntityIdProvider
Defines a default implementation of IEntityIdProvider
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class DefaultEntityIdProvider implements IEntityIdProvider, ICleanable
Constructors
DefaultEntityIdProvider()
Declaration
public DefaultEntityIdProvider()
Methods
clear()
Declaration
public synchronized void clear()
getEntityId()
Gets the next available Entity ID.
Declaration
public synchronized int getEntityId()
Returns
| Type | Description |
|---|---|
| int |
releaseEntityId(int entityId)
Releases id and puts it back into pool of ids
Declaration
public synchronized void releaseEntityId(int entityId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | entityId |