Package kieker.common.registry.writer
Class WriterRegistry
java.lang.Object
kieker.common.registry.writer.WriterRegistry
- All Implemented Interfaces:
IWriterRegistry<java.lang.String>
public class WriterRegistry extends java.lang.Object implements IWriterRegistry<java.lang.String>
Manages a writer registry. It triggers an registry listener for every new entry.
- Since:
- 1.13
- Author:
- Christian Wulf (chw)
-
Constructor Summary
Constructors Constructor Description WriterRegistry(IRegistryListener<java.lang.String> registryListener)
Create a new writer registry. -
Method Summary
-
Constructor Details
-
WriterRegistry
Create a new writer registry.- Parameters:
registryListener
- registry listener
-
-
Method Details
-
getId
public int getId(java.lang.String value)- Specified by:
getId
in interfaceIWriterRegistry<java.lang.String>
- Parameters:
value
- a registered value- Returns:
- unique id
-
register
public void register(java.lang.String value)- Specified by:
register
in interfaceIWriterRegistry<java.lang.String>
- Parameters:
value
- to be registered
-
getId
public long getId()Description copied from interface:IWriterRegistry
Gets the ID of this registry.- Specified by:
getId
in interfaceIWriterRegistry<java.lang.String>
- Returns:
- The registry's ID
-