java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.google.cloud.spring.data.datastore.core.mapping.event.ReadEvent
com.google.cloud.spring.data.datastore.core.mapping.event.AfterFindByKeyEvent
All Implemented Interfaces:
Serializable

public class AfterFindByKeyEvent extends ReadEvent
An event published immediately after a read operation has finished.
See Also:
  • Constructor Details

    • AfterFindByKeyEvent

      public AfterFindByKeyEvent(Iterable results, Set<com.google.cloud.datastore.Key> keys)
      Constructor.
      Parameters:
      results - A list of results from the read operation where each item was mapped from a Cloud Datastore entity.
      keys - The Keys that were attempted to be read.
  • Method Details

    • getTargetKeys

      public Set<com.google.cloud.datastore.Key> getTargetKeys()
      Get the list of target read keys.
      Returns:
      the list of Keys that were attempted to be read.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object