public interface ActiveCollectionManager
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveCollectionListener(ActiveCollectionListener l)
This method registers an active collection listener.
|
ActiveCollection |
create(String name,
ActiveCollection parent,
Predicate predicate,
Map<String,Object> properties)
This method derives a local active collection, from the supplied
parent active collection, with the supplied predicate to filter
results from the parent collection.
|
ActiveCollection |
getActiveCollection(String name)
This method returns the active collection associated with the
supplied name, or null if not found.
|
Collection<ActiveCollection> |
getActiveCollections()
This method returns the active collections.
|
long |
getHouseKeepingInterval()
This method gets the house keeping interval.
|
void |
register(ActiveCollectionSource acs)
This method registers the active collection source with
the manager.
|
void |
remove(String name)
This method explicitly removes the named derived active collection
making it unavailable to other clients.
|
void |
removeActiveCollectionListener(ActiveCollectionListener l)
This method unregisters an active collection listener.
|
void |
setHouseKeepingInterval(long interval)
This method sets the house keeping interval.
|
void |
unregister(ActiveCollectionSource acs)
This method unregisters the active collection source from
the manager.
|
void setHouseKeepingInterval(long interval)
interval - The intervallong getHouseKeepingInterval()
void addActiveCollectionListener(ActiveCollectionListener l)
l - The active collection listenervoid removeActiveCollectionListener(ActiveCollectionListener l)
l - The active collection listenervoid register(ActiveCollectionSource acs) throws Exception
acs - The active collection sourceException - Failed to register the active collection sourcevoid unregister(ActiveCollectionSource acs) throws Exception
acs - The active collection sourceException - Failed to unregister the active collection sourceActiveCollection getActiveCollection(String name)
name - The nameCollection<ActiveCollection> getActiveCollections()
ActiveCollection create(String name, ActiveCollection parent, Predicate predicate, Map<String,Object> properties)
name - The name of the locally maintained collectionparent - The parent active collectionpredicate - The predicate used to filter results from the parent
before they are applied to the childproperties - The optional propertiesvoid remove(String name)
name - The name of the derived collection to be removedCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.