Package com.gigaspaces.events
Class NotifyInfo
java.lang.Object
com.gigaspaces.events.NotifyInfo
- All Implemented Interfaces:
ISwapExternalizable,Textualizable,SmartExternalizable,Externalizable,Serializable
public class NotifyInfo
extends Object
implements SmartExternalizable, ISwapExternalizable, Textualizable
Holds a set of space.notify related parameters.
- Since:
- 6.0
- Version:
- 1.0
- Author:
- asy ronen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required by Externalizable.NotifyInfo(RemoteEventListener listener, int notifyType) NotifyInfo(RemoteEventListener listener, int notifyType, boolean fifo) NotifyInfo(RemoteEventListener listener, int notifyType, boolean fifo, MarshalledObject<?> handback) NotifyInfo(RemoteEventListener listener, NotifyActionType notifyType, EventSessionConfig config, MarshalledObject<?> handback, INotifyDelegatorFilter filter, String tag) NotifyInfo(RemoteEventListener listener, NotifyInfo notifyInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDefaults(ClusterPolicy clusterPolicy) intintlongintintgetTag()booleanbooleanbooleanisFifo()booleanbooleanbooleanvoidvoidvoidsetBatchParams(int size, long time, int pendingThreshold) voidsetBroadcast(boolean broadcast) setCustomInfo(CustomInfo customInfo) voidsetFifo(boolean fifo) voidsetFilter(INotifyDelegatorFilter filter) voidsetGuaranteedNotifications(boolean guaranteedNotifications) voidsetHandback(MarshalledObject<?> handback) voidsetListener(RemoteEventListener listener) voidsetModifiers(int modifiers) voidsetNotifyTemplate(Boolean notifyTemplate) voidsetNotifyType(int notifyType) voidsetReplicateTemplate(Boolean replicateTemplate) setReturnOnlyUids(boolean returnOnlyUids) voidsetReturnPrevValue(boolean returnPrevValue) voidsetTemplateUID(String templateUID) toString()voidtoText(Textualizer textualizer) voidvoidvoidwriteToSwap(ObjectOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
NotifyInfo
public NotifyInfo()Default constructor required by Externalizable. -
NotifyInfo
-
NotifyInfo
-
NotifyInfo
public NotifyInfo(RemoteEventListener listener, int notifyType, boolean fifo, MarshalledObject<?> handback) -
NotifyInfo
public NotifyInfo(RemoteEventListener listener, NotifyActionType notifyType, EventSessionConfig config, MarshalledObject<?> handback, INotifyDelegatorFilter filter, String tag) -
NotifyInfo
-
-
Method Details
-
toString
-
toText
- Specified by:
toTextin interfaceTextualizable
-
getReplicateTemplate
-
setReplicateTemplate
-
getNotifyTemplate
-
setNotifyTemplate
-
isGuaranteedNotifications
public boolean isGuaranteedNotifications() -
setGuaranteedNotifications
public void setGuaranteedNotifications(boolean guaranteedNotifications) -
isBroadcast
public boolean isBroadcast() -
setBroadcast
public void setBroadcast(boolean broadcast) -
isReturnOnlyUids
public boolean isReturnOnlyUids() -
setReturnOnlyUids
-
isFifo
public boolean isFifo() -
setFifo
public void setFifo(boolean fifo) -
isReturnPrevValue
public boolean isReturnPrevValue() -
setReturnPrevValue
public void setReturnPrevValue(boolean returnPrevValue) -
getNotifyType
public int getNotifyType() -
setNotifyType
public void setNotifyType(int notifyType) -
getModifiers
public int getModifiers() -
setModifiers
public void setModifiers(int modifiers) -
getTemplateUID
-
setTemplateUID
-
getOrInitTemplateUID
-
getListener
-
setListener
-
getFilter
-
setFilter
-
getHandback
-
setHandback
-
getCustomInfo
-
setCustomInfo
-
isBatching
public boolean isBatching() -
getBatchSize
public int getBatchSize() -
getBatchTime
public long getBatchTime() -
getBatchPendingThreshold
public int getBatchPendingThreshold() -
setBatchParams
public void setBatchParams(int size, long time, int pendingThreshold) -
getTag
-
applyDefaults
-
validateModifiers
public void validateModifiers() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-