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()
SubscriptionIdentifier
SubscriptionContainer
.getId
in interface SubscriptionIdentifier
public String getTypeName()
SubscriptionType
getTypeName
in interface SubscriptionType
public String getFilter()
MarshalledSubscription
SubscriptionFactory
will yield a valid instance of Subscription
.getFilter
in interface MarshalledSubscription
public String getCallbackAddress()
MarshalledSubscription
URL
for their DeliveryMethod
, this is not a
guarantee.getCallbackAddress
in interface MarshalledSubscription
Subscription
.This work is licensed under a Creative Commons Attribution 4.0 International License.