public class Subscription extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Subscription.State |
static interface |
Subscription.StateListener |
| Constructor and Description |
|---|
Subscription(SubscriptionManager subscriptionManager,
UInteger subscriptionId,
double publishingInterval,
long maxKeepAliveCount,
long lifetimeCount,
long maxNotificationsPerPublish,
boolean publishingEnabled,
int priority) |
public Subscription(SubscriptionManager subscriptionManager, UInteger subscriptionId, double publishingInterval, long maxKeepAliveCount, long lifetimeCount, long maxNotificationsPerPublish, boolean publishingEnabled, int priority)
public void modifySubscription(ModifySubscriptionRequest request)
public List<BaseMonitoredItem<?>> deleteSubscription()
public void setPublishingMode(SetPublishingModeRequest request)
public void addMonitoredItems(List<BaseMonitoredItem<?>> createdItems)
public void removeMonitoredItems(List<BaseMonitoredItem<?>> deletedItems)
public Map<UInteger,BaseMonitoredItem<?>> getMonitoredItems()
public UInteger getId()
public double getPublishingInterval()
public long getMaxKeepAliveCount()
public long getLifetimeCount()
public int getMaxNotificationsPerPublish()
public boolean isPublishingEnabled()
public int getPriority()
public long getKeepAliveCounter()
public long getLifetimeCounter()
public UInteger getMonitoredItemCount()
public UInteger getDisabledMonitoredItemCount()
public UInteger getNextSequenceNumber()
public UInteger[] getAvailableSequenceNumbers()
public UInteger getUnacknowledgeMessageCount()
public SubscriptionManager getSubscriptionManager()
public void setSubscriptionManager(SubscriptionManager subscriptionManager)
public Session getSession()
public long nextItemId()
public void setStateListener(Subscription.StateListener listener)
public StatusCode acknowledge(UInteger sequenceNumber)
public NotificationMessage republish(UInteger sequenceNumber)
public SubscriptionDiagnostics getSubscriptionDiagnostics()
Copyright © 2021. All rights reserved.