java.lang.Object
com.vaadin.kubernetes.starter.sessiontracker.serialization.debug.Track
All Implemented Interfaces:
Serializable

public final class Track extends Object implements Serializable
Container of information about serialized objects.
See Also:
  • Field Details

    • id

      public final int id
      The unique identifier of the serialized object in the stream.
    • depth

      public final int depth
      Object graph depth.
    • stackInfo

      public final transient List<String> stackInfo
      Path to the object in the object graph.
    • className

      public final String className
      Type of the Object being tracked.
  • Constructor Details

  • Method Details

    • getHandle

      public int getHandle()
      Gets the handle of the tracked object in the references table.
      Returns:
      the handle of the tracked object, or -1 if the object is not present in the references table.
    • assignHandle

      public Track assignHandle(ToIntFunction<Object> handleLookup)
      Associate the tracking object with instance handle.
      Parameters:
      handleLookup - a function that gets the handle of the current object.
      Returns:
      this instance, for chaining.
    • withEstimatedDepth

      public Track withEstimatedDepth(int depth)
    • withEstimatedHandle

      public Track withEstimatedHandle(int handle)
    • unknown

      public static Track unknown(int depth, Class<?> type)