HubSubscription¶
-
public class
HubSubscription
implements java.io.Serializable¶ Stores the subscription details of a topic.
Constructors¶
HubSubscription¶
-
public
HubSubscription
()¶ Creates a new instance of
HubSubscription
, with all fields set to null.
HubSubscription¶
-
public
HubSubscription
(Integer hubTopicId, Integer hubSubscriptionStatusId, String callbackUrl)¶ Creates a new instance of
HubSubscription
, with all fields set to the values specified in the parameters.Parameters: - hubTopicId – the id of a topic
- hubSubscriptionStatusId – the id of a subscription status
- callbackUrl – the callback url
HubSubscription¶
-
public
HubSubscription
(Integer hubTopicId, Integer hubSubscriptionStatusId, String callbackUrl, Integer leaseSeconds, String secret)¶ Creates a new instance of
HubSubscription
, with all fields set to the values specified in the parameters.Parameters: - hubTopicId – the id of a topic
- hubSubscriptionStatusId – the id of a subscription status
- callbackUrl – the callback url
- leaseSeconds – the time in seconds for which the subscription will be active
- secret – the secret value for HMAC digest computing