Class OperationInfo


  • public final class OperationInfo
    extends java.lang.Object
    A map wrapper for all meta data for a given thread in a thread registry.

    Used to store information like category, status and additional attributes of a thread.

    The information is stored in String key value pairs.

    Contains information if a thread can have a suspended database.

    • Method Detail

      • updateThread

        public static RevertibleUpdate updateThread​(@Nonnull
                                                    OperationInfo info)
        Updates current Thread info with a new one (previous and new one are merged together). Returns a RevertibleUpdate object that allows to revert to previous operation info.

        WARNING if a thread was not registered before this method won't do anything. The returned RevertibleObject will also do nothing when his RevertibleUpdate.revert() method will be called.

        Parameters:
        info - - operationInfo that will be merged with current operation info
        Returns:
        RevertibleUpdate object with previous operation info
        Throws:
        java.lang.NullPointerException - if updateInfo is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object