public class SubscriptionAttributes extends java.lang.Object implements DataSerializable, java.io.Externalizable
Region.
The InterestPolicy defines what remote operation's data/event
are of interest to this cache's region.
DataSerializable.Replaceable| Constructor and Description |
|---|
SubscriptionAttributes()
Creates a new
SubscriptionAttributes with the default
configuration |
SubscriptionAttributes(InterestPolicy interestPolicy)
Creates a new
SubscriptionAttributes with the given
interest policy. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
void |
fromData(java.io.DataInput in)
Reads the state of this object as primitive data from the given
DataInput. |
InterestPolicy |
getInterestPolicy()
Returns the interest policy of this subscriber.
|
int |
hashCode() |
void |
readExternal(java.io.ObjectInput in) |
void |
toData(java.io.DataOutput out)
Writes the state of this object as primitive data to the given
DataOutput. |
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
writeExternal(java.io.ObjectOutput out) |
public SubscriptionAttributes()
SubscriptionAttributes with the default
configurationpublic SubscriptionAttributes(InterestPolicy interestPolicy)
SubscriptionAttributes with the given
interest policy.interestPolicy - the interest policy this subscriber will usepublic InterestPolicy getInterestPolicy()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void toData(java.io.DataOutput out)
throws java.io.IOException
DataSerializableDataOutput.
Since 5.7 it is possible for any method call to the specified
DataOutput to throw GemFireRethrowable.
It should not be caught by user code.
If it is it must be rethrown.
toData in interface DataSerializablejava.io.IOException - A problem occurs while writing to outpublic void fromData(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
DataSerializableDataInput.fromData in interface DataSerializablejava.io.IOException - A problem occurs while reading from injava.lang.ClassNotFoundException - A class could not be loaded while reading from
inpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException