Class ReaderRegistry<E>

java.lang.Object
kieker.common.registry.reader.ReaderRegistry<E>
Type Parameters:
E - the type of the values in this registry
Direct Known Subclasses:
DeserializerStringRegistry

public class ReaderRegistry<E> extends Object
Represents an unsynchronized registry for read-only purposes. It is used by the readers within the analysis component.
Since:
1.13
Author:
Christian Wulf
  • Constructor Details

    • ReaderRegistry

      public ReaderRegistry()
      Constructs an unsynchronized reader registry.
  • Method Details

    • get

      public E get(long key)
      Get registry entry matching the key.
      Parameters:
      key - key
      Returns:
      returns matching entry.
    • getKey

      public Long getKey(E value)
      Reverse lookup of key based on value.
      Parameters:
      value - value
      Returns:
      returns first key
    • register

      public E register(long key, E value)
      Add one entry to the registry.
      Parameters:
      key - key
      value - value
      Returns:
      the previous associated value for the given key, or null otherwise.