Package org.apache.geode.cache
Class SubscriptionAttributes
java.lang.Object
org.apache.geode.cache.SubscriptionAttributes
- All Implemented Interfaces:
Externalizable,Serializable,DataSerializable
Configuration attributes for defining subscriber requirements and behavior for a
Region.
The InterestPolicy defines what remote operation's data/event are of interest to this
cache's region.
- Since:
- GemFire 5.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.geode.DataSerializable
DataSerializable.Replaceable -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newSubscriptionAttributeswith the default configurationSubscriptionAttributes(InterestPolicy interestPolicy) Creates a newSubscriptionAttributeswith the given interest policy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidReads the state of this object as primitive data from the givenDataInput.Returns the interest policy of this subscriber.inthashCode()voidvoidtoData(DataOutput out) Writes the state of this object as primitive data to the givenDataOutput.toString()Returns a string representation of the object.void
-
Constructor Details
-
SubscriptionAttributes
public SubscriptionAttributes()Creates a newSubscriptionAttributeswith the default configuration -
SubscriptionAttributes
Creates a newSubscriptionAttributeswith the given interest policy.- Parameters:
interestPolicy- the interest policy this subscriber will use
-
-
Method Details
-
getInterestPolicy
Returns the interest policy of this subscriber.- Returns:
- the interest policy of this subscriber
-
equals
-
hashCode
public int hashCode() -
toString
Returns a string representation of the object. -
toData
Description copied from interface:DataSerializableWrites the state of this object as primitive data to the givenDataOutput.Since 5.7 it is possible for any method call to the specified
DataOutputto throwGemFireRethrowable. It should not be caught by user code. If it is it must be rethrown.- Specified by:
toDatain interfaceDataSerializable- Parameters:
out- theDataOutputto write to- Throws:
IOException- A problem occurs while writing toout
-
fromData
Description copied from interface:DataSerializableReads the state of this object as primitive data from the givenDataInput.- Specified by:
fromDatain interfaceDataSerializable- Parameters:
in- theDataInputto read from- Throws:
IOException- A problem occurs while reading frominClassNotFoundException- A class could not be loaded while reading fromin
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-