public interface PropertyService extends Cache<Property<?>>
Cache.get(String, String) method. If it finds the property it
stores it in the cache.| Modifier and Type | Interface and Description |
|---|---|
static interface |
PropertyService.Observer<Type>
Observer which is used to be notified for specific events.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(String tenantId,
String id,
PropertyService.Observer observer)
Add an observer for given property id.
|
void |
remove(String tenantId,
String id)
Remove property from the cache.
|
void |
removeObserver(String tenantId,
String id,
PropertyService.Observer observer)
Remove observer for given property id.
|
void |
store(String tenantId,
Property<?> property)
Store single property in the cache.
|
void store(String tenantId, Property<?> property) throws CacheException
tenantId - tenantproperty - propertyCacheExceptionvoid remove(String tenantId, String id)
tenantId - tenant idid - property idvoid addObserver(String tenantId, String id, PropertyService.Observer observer)
Observer#update(Property, Property) is called when a
client invokes Thisstore(String, Property). Observers can be added before storing a
Property with given id.tenantId - tenantid - id of the propertyobserver - observervoid removeObserver(String tenantId, String id, PropertyService.Observer observer)
tenantId - tenantid - id of the propertyobserver - Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.