@ComponentProfile(since="3.8.0")
public class ExpiringMapCacheListener
extends java.lang.Object
implements net.jodah.expiringmap.ExpirationListener<java.lang.String,java.lang.Object>
ExpirationListener
implementation that notifies any configured CacheEventListener
that are configured.In the adapter configuration file this class is aliased as expiring-map-cache-listener which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ExpiringMapCacheListener() |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(CacheEventListener listener) |
void |
expired(java.lang.String key,
java.lang.Object value) |
java.util.Set<CacheEventListener> |
getListeners() |
boolean |
removeEventListener(CacheEventListener listener) |
void |
setListeners(java.util.Set<CacheEventListener> listeners) |
public void expired(java.lang.String key, java.lang.Object value)
expired
in interface net.jodah.expiringmap.ExpirationListener<java.lang.String,java.lang.Object>
public java.util.Set<CacheEventListener> getListeners()
public void setListeners(java.util.Set<CacheEventListener> listeners)
public void addEventListener(CacheEventListener listener)
public boolean removeEventListener(CacheEventListener listener)