Record Class End

java.lang.Object
java.lang.Record
io.kubfly.sdk.reflector.End
Record Components:
origin - where it comes from, shared by the items of its instance
key - its key: the instance and its number, of its own: given when the body returned
time - its time
late - by how much it was late, ms
frame - the frame it ends: the key of its Begin
duration - its duration, ns
threadId - the thread on which the frame ends (Thread.threadId()), None — no thread (Go)
threadName - the name of that thread (Some("") — a thread without a name), None — no thread
failure - the exception of its body, None — it completed
All Implemented Interfaces:
Item, Serializable

public record End(Origin origin, ItemKey key, long time, long late, ItemKey frame, long duration, Option<Long> threadId, Option<String> threadName, Option<Failure> failure) extends Record implements Item, Serializable
A frame of a scope ends.
See Also:
  • Constructor Details

    • End

      public End(Origin origin, ItemKey key, long time, long late, ItemKey frame, long duration, Option<Long> threadId, Option<String> threadName, Option<Failure> failure)
      Creates an instance of a End record class.
      Parameters:
      origin - the value for the origin record component
      key - the value for the key record component
      time - the value for the time record component
      late - the value for the late record component
      frame - the value for the frame record component
      duration - the value for the duration record component
      threadId - the value for the threadId record component
      threadName - the value for the threadName record component
      failure - the value for the failure record component
  • Method Details

    • kind

      public ItemKind kind()
      The kind.
      Specified by:
      kind in interface Item
      Returns:
      ItemKind.END
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • origin

      public Origin origin()
      Returns the value of the origin record component.
      Specified by:
      origin in interface Item
      Returns:
      the value of the origin record component
    • key

      public ItemKey key()
      Returns the value of the key record component.
      Specified by:
      key in interface Item
      Returns:
      the value of the key record component
    • time

      public long time()
      Returns the value of the time record component.
      Specified by:
      time in interface Item
      Returns:
      the value of the time record component
    • late

      public long late()
      Returns the value of the late record component.
      Returns:
      the value of the late record component
    • frame

      public ItemKey frame()
      Returns the value of the frame record component.
      Returns:
      the value of the frame record component
    • duration

      public long duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • threadId

      public Option<Long> threadId()
      Returns the value of the threadId record component.
      Returns:
      the value of the threadId record component
    • threadName

      public Option<String> threadName()
      Returns the value of the threadName record component.
      Returns:
      the value of the threadName record component
    • failure

      public Option<Failure> failure()
      Returns the value of the failure record component.
      Returns:
      the value of the failure record component