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

    Modifier and Type Method Description
    long getId()
    Gets the ID of this registry.
    int getId​(java.lang.String value)  
    void register​(java.lang.String value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WriterRegistry

      public WriterRegistry​(IRegistryListener<java.lang.String> registryListener)
      Create a new writer registry.
      Parameters:
      registryListener - registry listener
  • Method Details

    • getId

      public int getId​(java.lang.String value)
      Specified by:
      getId in interface IWriterRegistry<java.lang.String>
      Parameters:
      value - a registered value
      Returns:
      unique id
    • register

      public void register​(java.lang.String value)
      Specified by:
      register in interface IWriterRegistry<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 interface IWriterRegistry<java.lang.String>
      Returns:
      The registry's ID