Class RefCountedObjectProfile


  • public class RefCountedObjectProfile
    extends java.lang.Object
    Profile info of a reference-counted stored object.
    • Constructor Summary

      Constructors 
      Constructor Description
      RefCountedObjectProfile​(java.lang.String uniqueId, long timestampCreated)
      Constructs RefCountedObjectProfile with default parameters.
      RefCountedObjectProfile​(java.lang.String uniqueId, long timestampCreated, int strongReferences, int serializedReferences, boolean serializedReferenceLeak)
      Constructs RefCountedObjectProfile with the given params.
    • Constructor Detail

      • RefCountedObjectProfile

        public RefCountedObjectProfile​(java.lang.String uniqueId,
                                       long timestampCreated,
                                       int strongReferences,
                                       int serializedReferences,
                                       boolean serializedReferenceLeak)
        Constructs RefCountedObjectProfile with the given params.
        Parameters:
        uniqueId - Unique ID of the object.
        timestampCreated - Timestamp (milliseconds since the UNIX epoch), at which the object was first created.
        strongReferences - Number of strong references associated with the object. The strong reference count increases when a new instance of a platform ImageRef class is created from the object's unique ID and decreases when the ImageRef instance is destroyed. Default is 0
        serializedReferences - Number of serialized references to the object. The serialized reference count increases when an ImageRef is written to JSON or a Parcel on Android and decrease when the respective JSON or Parcel is deserialized. Default is 0
        serializedReferenceLeak - True, if a serialized reference to this object has likely leaked. Serialized references cannot be tracked via garbage collection (GC) or automatic reference counting (ARC), so they're much more likely to leak. On the other hand, serialized references are almost immediately deserialized (and thus converted to strong references) in all code paths, so the serialized reference count should be zero most of the time. If a serialized reference has existed for more than 5 seconds, it can be assumed that it has leaked. Default is false
      • RefCountedObjectProfile

        public RefCountedObjectProfile​(java.lang.String uniqueId,
                                       long timestampCreated)
        Constructs RefCountedObjectProfile with default parameters.
        Parameters:
        uniqueId - Unique ID of the object.
        timestampCreated - Timestamp (milliseconds since the UNIX epoch), at which the object was first created.
    • Method Detail

      • getUniqueId

        public java.lang.String getUniqueId()
        Getter for uniqueId field. See constructor documentation for more information about the field.
        Returns:
        uniqueId
      • getTimestampCreated

        public long getTimestampCreated()
        Getter for timestampCreated field. See constructor documentation for more information about the field.
        Returns:
        timestampCreated
      • getStrongReferences

        public int getStrongReferences()
        Getter for strongReferences field. See constructor documentation for more information about the field.
        Returns:
        strongReferences
      • getSerializedReferences

        public int getSerializedReferences()
        Getter for serializedReferences field. See constructor documentation for more information about the field.
        Returns:
        serializedReferences
      • getSerializedReferenceLeak

        public boolean getSerializedReferenceLeak()
        Getter for serializedReferenceLeak field. See constructor documentation for more information about the field.
        Returns:
        serializedReferenceLeak