Package com.j_spaces.core.client
Class EntryArrivedRemoteEvent
java.lang.Object
java.util.EventObject
net.jini.core.event.RemoteEvent
com.gigaspaces.events.SpaceRemoteEvent
com.j_spaces.core.client.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 Summary
FieldsFields inherited from class com.gigaspaces.events.SpaceRemoteEvent
EMPTY_STRINGFields inherited from class net.jini.core.event.RemoteEvent
eventID, handback, seqNum, source -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.EntryArrivedRemoteEvent(IJSpace source, long eventID, long seqNum, MarshalledObject handback, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, NotifyActionType notifyType, boolean fromReplication, String templateUID, QueryResultTypeInternal resultType) /** This constructor is reserved for internal usage only. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a shallow copy of this EntryArrivedRemoteEvent instance.Returns an internal GigaSpaces structure to send/receive entries from the space.getKey()Returns a notify type of this event.intDeprecated.Returns the entry by specification of user.Returns the handback object that was provided as a parameter to the event interest registration method, if any.The space on which the Event initially occurred.Returns the unique uid of the space the event originated from.returns multicast templateID, TODO remote this support after support TemplateID == NotifySpaceUIDbooleanprotected voidreadExternal(ObjectInput in, PlatformLogicalVersion version) Reserved for internal usage.voidsetSpaceProxy(IJSpace spaceProxy) protected voidsetSpaceProxyUuid(Uuid spaceProxyUuid) toString()protected voidwriteExternal(ObjectOutput out, PlatformLogicalVersion version) Reserved for internal usage.Methods inherited from class com.gigaspaces.events.SpaceRemoteEvent
readExternal, writeExternalMethods inherited from class net.jini.core.event.RemoteEvent
getID, getSequenceNumberMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
_templateUID
-
_spaceProxy
-
-
Constructor Details
-
EntryArrivedRemoteEvent
public EntryArrivedRemoteEvent()Empty constructor. -
EntryArrivedRemoteEvent
public EntryArrivedRemoteEvent(IJSpace source, long eventID, long seqNum, MarshalledObject handback, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, NotifyActionType notifyType, boolean fromReplication, String templateUID, QueryResultTypeInternal resultType) /** This constructor is reserved for internal usage only.
-
-
Method Details
-
getEntryPacket
Returns an internal GigaSpaces structure to send/receive entries from the space.- Returns:
- the
EntryPacket
-
getSource
The space on which the Event initially occurred.- Overrides:
getSourcein classEventObject- Returns:
- The space proxy on which the Event initially occurred.
-
getOperationID
-
getSpaceUuid
Returns the unique uid of the space the event originated from.- Returns:
- the unique uid of the space the event originated from.
-
getObject
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.since 9.1 usegetNotifyActionType()instead.Returns a notify type of this event.- Returns:
- Returns a notify type of this event.
-
getNotifyActionType
Returns a notify type of this event.- Returns:
- notify type of this event.
- Since:
- 6.0
-
getRegistrationObject
Returns the handback object that was provided as a parameter to the event interest registration method, if any.- Overrides:
getRegistrationObjectin classRemoteEvent- Returns:
- the MarshalledObject that was provided as a parameter to the event interest registration method, if any.
-
setSpaceProxy
-
clone
Returns a shallow copy of this EntryArrivedRemoteEvent instance. -
setSpaceProxyUuid
-
getTemplateUID
returns multicast templateID, TODO remote this support after support TemplateID == NotifySpaceUID -
toString
- Overrides:
toStringin classEventObject
-
isFromReplication
public boolean isFromReplication()- Returns:
- true if event comes from replication, otherwise false.
-
getKey
-
writeExternal
Description copied from class:SpaceRemoteEventReserved for internal usage.- Overrides:
writeExternalin classSpaceRemoteEvent- Throws:
IOException
-
readExternal
protected void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException Description copied from class:SpaceRemoteEventReserved for internal usage.- Overrides:
readExternalin classSpaceRemoteEvent- Throws:
IOExceptionClassNotFoundException
-
getLRMIMethodTrackingId
- Specified by:
getLRMIMethodTrackingIdin interfaceLRMIMethodTrackingIdProvider
-
getNotifyActionType()instead.