public class ChainedBeanPersistListener<T> extends Object implements BeanPersistListener<T>
| Constructor and Description |
|---|
ChainedBeanPersistListener(BeanPersistListener<T> c1,
BeanPersistListener<T> c2)
Construct adding 2 BeanPersistController's.
|
ChainedBeanPersistListener(List<BeanPersistListener<T>> list)
Construct given the list of BeanPersistController's.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleted(T bean)
Notified that a bean has been deleted locally.
|
ChainedBeanPersistListener<T> |
deregister(BeanPersistListener<T> c)
De-register a BeanPersistController and return the resulting chain.
|
boolean |
inserted(T bean)
Notified that a bean has been inserted locally.
|
ChainedBeanPersistListener<T> |
register(BeanPersistListener<T> c)
Register a new BeanPersistController and return the resulting chain.
|
void |
remoteDelete(Object id)
Notify that a bean was deleted on another node of the cluster.
|
void |
remoteInsert(Object id)
Notify that a bean was inserted on another node of the cluster.
|
void |
remoteUpdate(Object id)
Notify that a bean was updated on another node of the cluster.
|
boolean |
updated(T bean,
Set<String> updatedProperties)
Notified that a bean has been updated locally.
|
public ChainedBeanPersistListener(BeanPersistListener<T> c1, BeanPersistListener<T> c2)
public ChainedBeanPersistListener(List<BeanPersistListener<T>> list)
list - public ChainedBeanPersistListener<T> register(BeanPersistListener<T> c)
public ChainedBeanPersistListener<T> deregister(BeanPersistListener<T> c)
public boolean deleted(T bean)
BeanPersistListenerdeleted in interface BeanPersistListener<T>bean - The bean that was deleted.public boolean inserted(T bean)
BeanPersistListenerinserted in interface BeanPersistListener<T>bean - The bean that was inserted.public void remoteDelete(Object id)
BeanPersistListenerremoteDelete in interface BeanPersistListener<T>id - the id value of the deleted bean.public void remoteInsert(Object id)
BeanPersistListenerremoteInsert in interface BeanPersistListener<T>id - the id value of the inserted beanpublic void remoteUpdate(Object id)
BeanPersistListenerremoteUpdate in interface BeanPersistListener<T>id - the id value of the updated bean.public boolean updated(T bean, Set<String> updatedProperties)
BeanPersistListenerupdated in interface BeanPersistListener<T>bean - The bean that was updated.updatedProperties - the properties on the bean that where updatedCopyright © 2014. All Rights Reserved.