Class PersistenceInfoKey

java.lang.Object
org.jppf.job.persistence.impl.PersistenceInfoKey

public class PersistenceInfoKey extends Object
Instances of this class represent a key in the cache.
  • Constructor Details

    • PersistenceInfoKey

      public PersistenceInfoKey(String uuid, PersistenceObjectType type, int position)
      Intiialize this cache key.
      Parameters:
      uuid - the job uuid.
      type - the type of persisted object.
      position - the position of the object in the job if applicable, otherwise -1.
    • PersistenceInfoKey

      public PersistenceInfoKey(PersistenceInfo info)
      Intiialize this cache key.
      Parameters:
      info - the info from which to initialize.
  • Method Details

    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getUuid

      public String getUuid()
      Returns:
      the job uuid.
    • getType

      public PersistenceObjectType getType()
      Returns:
      the type of persisted object.
    • getPosition

      public int getPosition()
      Returns:
      the position of the object in the job if applicable, otherwise -1.