E
- the type of the values in the passed registrypublic class GetIdAdapter<E> extends java.lang.Object implements IRegistry<E>
AbstractMonitoringRecord.serialize(..)
.Constructor and Description |
---|
GetIdAdapter(IWriterRegistry<E> writerRegistry) |
Modifier and Type | Method and Description |
---|---|
int |
get(E value)
Gets a unique id for an object.
|
E |
get(int i)
Gets the object associated with the unique id.
|
E[] |
getAll()
Return an array with all registered objects.
|
long |
getId()
Gets the ID of this registry.
|
int |
getSize()
Returns the number of registered objects.
|
void |
setRecordReceiver(IRegistryRecordReceiver registryRecordReceiver)
Enables logging of newly registered objects.
|
public GetIdAdapter(IWriterRegistry<E> writerRegistry)
public long getId()
IRegistry
public int get(E value)
IRegistry
public E get(int i)
IRegistry
public E[] getAll()
IRegistry
public int getSize()
IRegistry
public void setRecordReceiver(IRegistryRecordReceiver registryRecordReceiver)
IRegistry
setRecordReceiver
in interface IRegistry<E>
registryRecordReceiver
- the IRegistryRecordReceiver logged toCopyright 2017 Kieker Project, http://kieker-monitoring.net