Class Jobs.JobObjectDescription

  • All Implemented Interfaces:
    ICacheDescription
    Enclosing class:
    Jobs

    protected static class Jobs.JobObjectDescription
    extends BaseDescription
    Job object description class. This class describes an object in the cache.
    • Field Detail

      • jobID

        protected java.lang.Long jobID
      • criticalSectionName

        protected java.lang.String criticalSectionName
    • Constructor Detail

      • JobObjectDescription

        public JobObjectDescription​(java.lang.Long jobID,
                                    StringSet invKeys)
    • Method Detail

      • getJobID

        public java.lang.Long getJobID()
      • hashCode

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

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

        public java.lang.String getCriticalSectionName()
        Description copied from interface: ICacheDescription
        Get the critical section name for this description object. This is used to synchronize creation of the described object, and thus is used only for objects that will be cached. This method does not need to return decent results for objects that are never cached.
        Returns:
        the critical section name.
      • getObjectKeys

        public StringSet getObjectKeys()
        Get the cache keys for an object (which may or may not exist yet in the cache). This method is called in order for cache manager to throw the correct locks.
        Returns:
        the object's cache keys, or null if the object should not be cached.