Class GSEventRegistration

java.lang.Object
net.jini.core.event.EventRegistration
com.gigaspaces.events.GSEventRegistration
All Implemented Interfaces:
Textualizable, Serializable

public class GSEventRegistration extends EventRegistration implements Textualizable
Since:
6.0
Author:
assafr
See Also:
  • Constructor Details

    • GSEventRegistration

      public GSEventRegistration(long eventID, Object source, Lease lease, long seqNum)
    • GSEventRegistration

      public GSEventRegistration(long eventID, Object source, Lease lease, long seqNum, String templateID, Uuid spaceUID)
  • Method Details

    • setLease

      public void setLease(Lease lease)
    • getTemplateID

      public String getTemplateID()
    • getSpaceUID

      public Uuid getSpaceUID()
    • getKey

      public String getKey()
    • addSequenceNumber

      public void addSequenceNumber(GSEventRegistration registration)
      when in partitioned space scenario, multiple EventRegistration objects are received, each with his own sequence number. all the sequence numbers are accumulated here so that the fifo delegator will know from what index (sequence number) to start.
      Parameters:
      registration - the EventRegistration from a single space.
    • getSequenceNumbers

      public Map<Uuid,Long> getSequenceNumbers()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toText

      public void toText(Textualizer textualizer)
      Specified by:
      toText in interface Textualizable