Class ForwardingListener<K,V>
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.cache.ForwardingListener<K,V>
-
- All Implemented Interfaces:
RemovalListener<K,V>
public class ForwardingListener<K,V> extends Object implements RemovalListener<K,V>
Listener which forwards the notifications to a delegate. It is used to bridge multiple instances.
-
-
Constructor Summary
Constructors Constructor Description ForwardingListener()
ForwardingListener(RemovalListener<K,V> delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
ForwardingListener<K,V>newInstance()
static <K,V>
ForwardingListener<K,V>newInstance(RemovalListener<K,V> delegate)
void
onRemoval(RemovalNotification<K,V> notification)
void
setDelegate(RemovalListener<K,V> delegate)
-
-
-
Constructor Detail
-
ForwardingListener
public ForwardingListener()
-
ForwardingListener
public ForwardingListener(RemovalListener<K,V> delegate)
-
-
Method Detail
-
onRemoval
public void onRemoval(RemovalNotification<K,V> notification)
- Specified by:
onRemoval
in interfaceRemovalListener<K,V>
-
setDelegate
public void setDelegate(RemovalListener<K,V> delegate)
-
newInstance
public static <K,V> ForwardingListener<K,V> newInstance()
-
newInstance
public static <K,V> ForwardingListener<K,V> newInstance(RemovalListener<K,V> delegate)
-
-