Constructor and Description |
---|
Lookup()
Create a new lookup entry.
|
Lookup(long id)
Creates a new lookup with the given ID.
|
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.
|
E |
getNonBlocking(int i)
Get a record from the underlying object array.
|
int |
getSize()
Returns the number of registered objects.
|
boolean |
set(E value,
int id)
Registers the object with the unique id.
|
void |
setRecordReceiver(IRegistryRecordReceiver recordReceiver)
Deprecated.
(won't be removed) This method is not supported by this implementation.
|
java.lang.String |
toString() |
public Lookup()
public Lookup(long id)
id
- The ID to use for this lookuppublic long getId()
IRegistry
public int get(E value)
IRegistry
public E getNonBlocking(int i)
i
- the index for the arraypublic E[] getAll()
IRegistry
public int getSize()
IRegistry
public E get(int i)
IRegistry
public boolean set(E value, int id)
ILookup
@Deprecated public void setRecordReceiver(IRegistryRecordReceiver recordReceiver)
IRegistry
setRecordReceiver
in interface IRegistry<E>
recordReceiver
- has no special property.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2017 Kieker Project, http://kieker-monitoring.net