public class AggregatingSubscriptionManager extends AbstractSubscriptionManager
| Modifier and Type | Class and Description |
|---|---|
static interface |
AggregatingSubscriptionManager.Listener |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ScheduledExecutorService |
executor |
cache, started| Constructor and Description |
|---|
AggregatingSubscriptionManager(java.util.concurrent.ScheduledExecutorService executor,
HiveSource hiveSource,
java.util.Properties properties)
Create a new subscription manager
|
AggregatingSubscriptionManager(java.util.concurrent.ScheduledExecutorService executor,
HiveSource hiveSource,
java.util.Properties properties,
AggregatingSubscriptionManager.Listener listener)
Create a new subscription manager
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCache() |
protected void |
putState(java.lang.String itemId,
DataItemValue value) |
void |
stop() |
void |
subscribe(java.lang.String itemId)
Subscribe to an item
|
void |
subscribeAll(java.util.Set<java.lang.String> itemIds)
Subscribe to multiple items
|
void |
unsubscribe(java.lang.String itemId) |
bind, getCacheCopy, getCacheValue, handleCreateSessionResult, handleDataChanged, handleSubscriptionChanged, performSetHive, start, unbind, writeAttributes, writeValuepublic AggregatingSubscriptionManager(java.util.concurrent.ScheduledExecutorService executor,
HiveSource hiveSource,
java.util.Properties properties,
AggregatingSubscriptionManager.Listener listener)
executor - a single threaded executorhiveSource - the source of the hive to attach toproperties - the session properties for the hivelistener - optionally a listener that will get a call when any of the
values in the cache changedpublic AggregatingSubscriptionManager(java.util.concurrent.ScheduledExecutorService executor,
HiveSource hiveSource,
java.util.Properties properties)
executor - a single threaded executorhiveSource - the source of the hive to attach toproperties - the session properties for the hivepublic void stop()
stop in class AbstractSubscriptionManagerprotected void clearCache()
clearCache in class AbstractSubscriptionManagerprotected void putState(java.lang.String itemId,
DataItemValue value)
putState in class AbstractSubscriptionManagerpublic void subscribe(java.lang.String itemId)
AbstractSubscriptionManager
Subscriptions may only be made after the manager was started using
AbstractSubscriptionManager.start().
subscribe in class AbstractSubscriptionManageritemId - id of the item to subscribe topublic void unsubscribe(java.lang.String itemId)
unsubscribe in class AbstractSubscriptionManagerpublic void subscribeAll(java.util.Set<java.lang.String> itemIds)
AbstractSubscriptionManager
Subscriptions may only be made after the manager was started using
AbstractSubscriptionManager.start().
subscribeAll in class AbstractSubscriptionManageritemIds - the ids of the items to subscribe to
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0