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 java.lang.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 Summary

    Constructors 
    Constructor Description
    ReaderRegistry()
    Constructs an unsynchronized reader registry.
  • Method Summary

    Modifier and Type Method Description
    E get​(long key)
    Get registry entry matching the key.
    java.lang.Long getKey​(E value)
    Reverse lookup of key based on value.
    E register​(long key, E value)
    Add one entry to the registry.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 java.lang.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.