Class EntryArrivedRemoteEvent

All Implemented Interfaces:
LRMIMethodTrackingIdProvider, SmartExternalizable, Externalizable, Serializable, Cloneable
Direct Known Subclasses:
BatchRemoteEvent

public class EntryArrivedRemoteEvent extends SpaceRemoteEvent implements Cloneable, LRMIMethodTrackingIdProvider
An EntryArrivedRemoteEvent is sent to a NotifyDelegator object when an entry that matches the delegator's template enters a GigaSpace.
Version:
2.0
Author:
Igor Goldenberg
See Also:
  • Field Details

    • _templateUID

      protected String _templateUID
    • _spaceProxy

      protected transient IJSpace _spaceProxy
  • Constructor Details

  • Method Details

    • getEntryPacket

      public IEntryPacket getEntryPacket()
      Returns an internal GigaSpaces structure to send/receive entries from the space.
      Returns:
      the EntryPacket
    • getSource

      public Object getSource()
      The space on which the Event initially occurred.
      Overrides:
      getSource in class EventObject
      Returns:
      The space proxy on which the Event initially occurred.
    • getOperationID

      public OperationID getOperationID()
    • getSpaceUuid

      public Uuid getSpaceUuid()
      Returns the unique uid of the space the event originated from.
      Returns:
      the unique uid of the space the event originated from.
    • getObject

      public Object getObject() throws UnusableEntryException
      Returns the entry by specification of user.
      Returns:
      the entry that arrived at the space.
      Throws:
      UnusableEntryException - This exception is no longer thrown.
    • getNotifyType

      @Deprecated public int getNotifyType()
      Deprecated.
      since 9.1 use getNotifyActionType() instead.
      Returns a notify type of this event.
      Returns:
      Returns a notify type of this event.
    • getNotifyActionType

      public NotifyActionType getNotifyActionType()
      Returns a notify type of this event.
      Returns:
      notify type of this event.
      Since:
      6.0
    • getRegistrationObject

      public MarshalledObject getRegistrationObject()
      Returns the handback object that was provided as a parameter to the event interest registration method, if any.
      Overrides:
      getRegistrationObject in class RemoteEvent
      Returns:
      the MarshalledObject that was provided as a parameter to the event interest registration method, if any.
    • setSpaceProxy

      public void setSpaceProxy(IJSpace spaceProxy)
    • clone

      public Object clone()
      Returns a shallow copy of this EntryArrivedRemoteEvent instance.
      Overrides:
      clone in class Object
      Returns:
      A clone of this EntryArrivedRemoteEvent instance.
    • setSpaceProxyUuid

      protected void setSpaceProxyUuid(Uuid spaceProxyUuid)
    • getTemplateUID

      public String getTemplateUID()
      returns multicast templateID, TODO remote this support after support TemplateID == NotifySpaceUID
    • toString

      public String toString()
      Overrides:
      toString in class EventObject
    • isFromReplication

      public boolean isFromReplication()
      Returns:
      true if event comes from replication, otherwise false.
    • getKey

      public String getKey()
    • writeExternal

      protected void writeExternal(ObjectOutput out, PlatformLogicalVersion version) throws IOException
      Description copied from class: SpaceRemoteEvent
      Reserved for internal usage.
      Overrides:
      writeExternal in class SpaceRemoteEvent
      Throws:
      IOException
    • readExternal

      protected void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException
      Description copied from class: SpaceRemoteEvent
      Reserved for internal usage.
      Overrides:
      readExternal in class SpaceRemoteEvent
      Throws:
      IOException
      ClassNotFoundException
    • getLRMIMethodTrackingId

      public String getLRMIMethodTrackingId()
      Specified by:
      getLRMIMethodTrackingId in interface LRMIMethodTrackingIdProvider