GigaSpaces XAP 9.7.2 API

com.gigaspaces.events
Class SpaceRemoteEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.jini.core.event.RemoteEvent
          extended by com.gigaspaces.events.SpaceRemoteEvent
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
EntryArrivedRemoteEvent

public class SpaceRemoteEvent
extends RemoteEvent
implements Externalizable

Base class for space remote events.

Since:
8.0.4
Author:
Niv Ingberg
See Also:
Serialized Form

Field Summary
protected static String EMPTY_STRING
           
 
Fields inherited from class net.jini.core.event.RemoteEvent
eventID, handback, seqNum, source
 
Constructor Summary
SpaceRemoteEvent()
          Required for Externalizable
SpaceRemoteEvent(Object source, long eventID, long seqNum, MarshalledObject handback)
          Constructs a SpaceRemoteEvent object.
 
Method Summary
 void readExternal(ObjectInput in)
          Required for Externalizable
protected  void readExternal(ObjectInput in, com.gigaspaces.internal.version.PlatformLogicalVersion version)
          Reserved for internal usage.
 void writeExternal(ObjectOutput out)
          Required for Externalizable
protected  void writeExternal(ObjectOutput out, com.gigaspaces.internal.version.PlatformLogicalVersion version)
          Reserved for internal usage.
 
Methods inherited from class net.jini.core.event.RemoteEvent
getID, getRegistrationObject, getSequenceNumber
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_STRING

protected static final String EMPTY_STRING
See Also:
Constant Field Values
Constructor Detail

SpaceRemoteEvent

public SpaceRemoteEvent()
Required for Externalizable


SpaceRemoteEvent

public SpaceRemoteEvent(Object source,
                        long eventID,
                        long seqNum,
                        MarshalledObject handback)
Constructs a SpaceRemoteEvent object.

The abstract state contained in a RemoteEvent object includes a reference to the object in which the event occurred, a long which identifies the kind of event relative to the object in which the event occurred, a long which indicates the sequence number of this instance of the event kind, and a MarshalledObject that is to be handed back when the notification occurs. The combination of the event identifier and the object reference obtained from the RemoteEvent object should uniquely identify the event type.

Parameters:
source - an Object representing the event source
eventID - a long containing the event identifier
seqNum - a long containing the event sequence number
handback - a MarshalledObject that was passed in as part of the original event registration.
Method Detail

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Required for Externalizable

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

writeExternal

protected void writeExternal(ObjectOutput out,
                             com.gigaspaces.internal.version.PlatformLogicalVersion version)
                      throws IOException
Reserved for internal usage.

Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Required for Externalizable

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

readExternal

protected void readExternal(ObjectInput in,
                            com.gigaspaces.internal.version.PlatformLogicalVersion version)
                     throws IOException,
                            ClassNotFoundException
Reserved for internal usage.

Throws:
IOException
ClassNotFoundException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.