public interface SubscriptionService<T>
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<T> |
checkSubscription()
Let the user to get the basic information of the subscription.
|
java.util.concurrent.CompletableFuture<PricingPlan> |
getPricingPlan(java.lang.String planName)
Let users to get the specific pricing plan information.
|
java.util.concurrent.CompletableFuture<java.util.List<PricingPlan>> |
getPricingPlanList()
Let users to get the all the pricing plan list in order to subscribe
to a new vault or backup service on the user's requirement.
|
java.util.concurrent.CompletableFuture<T> |
subscribe(java.lang.String credential)
Let a new user subscribe to the entity service on the specified back-end
node, where the entity service would be vault or backup service.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
unsubscribe()
Let user to unsubscribe to an existing but useless vault or backup service.
|
java.util.concurrent.CompletableFuture<java.util.List<PricingPlan>> getPricingPlanList()
java.util.concurrent.CompletableFuture<PricingPlan> getPricingPlan(java.lang.String planName)
planName - the name of the pricing planjava.util.concurrent.CompletableFuture<T> subscribe(java.lang.String credential)
credential - The credential used to subscribe to a vault or backup service,
currently this parameter would be reserved for future usage.java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe()
java.util.concurrent.CompletableFuture<T> checkSubscription()