public class SubscriptionMetadata extends Object implements SubscriptionIdentifier, MarshalledSubscription
PersistentStore.
SubscriptionMetadata wraps a serialized Subscription with no
assumption as to the specific serialization format, only the guarantee that metadata objects with
the same type are the same format. That means metadata objects with the same type
can be serialized and deserialized the same way, using the same instance of SubscriptionFactory.
| Constructor and Description |
|---|
SubscriptionMetadata(String typeName,
String filter,
String callbackAddress) |
SubscriptionMetadata(String typeName,
String filter,
String callbackAddress,
String id) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCallbackAddress()
Get the subscription callback address.
|
String |
getFilter()
Get the subscription filter as a marshalled string.
|
String |
getId()
Uniquely identifies a single subscription for a given type in the
SubscriptionContainer. |
String |
getTypeName()
Retrieve a unique type.
|
public SubscriptionMetadata(String typeName, String filter, String callbackAddress)
public String getId()
SubscriptionIdentifierSubscriptionContainer.getId in interface SubscriptionIdentifierpublic String getTypeName()
SubscriptionTypegetTypeName in interface SubscriptionTypepublic String getFilter()
MarshalledSubscriptionSubscriptionFactory will yield a valid instance of Subscription.getFilter in interface MarshalledSubscriptionpublic String getCallbackAddress()
MarshalledSubscriptionURL for their DeliveryMethod, this is not a
guarantee.getCallbackAddress in interface MarshalledSubscriptionSubscription.This work is licensed under a Creative Commons Attribution 4.0 International License.