public class TestCacheEntryListener extends Object implements CacheEntryListener<Object>
Modifier and Type | Class and Description |
---|---|
static class |
TestCacheEntryListener.EventType |
Constructor and Description |
---|
TestCacheEntryListener() |
Modifier and Type | Method and Description |
---|---|
void |
cacheEntryAdded(CacheEntryEvent<Object> event) |
void |
cacheEntryModified(CacheEntryEvent<Object> event) |
void |
cacheEntryRemoved(CacheEntryEvent<Object> event) |
CacheEntryEvent<Object> |
getAddedEvent() |
CacheEntryEvent<Object> |
getModifiedEvent() |
CacheEntryEvent<Object> |
getRemovedEvent() |
void |
reinitAddEvent()
Set add event to null.
|
void |
reinitModifiedEvent()
Set modified event to null.
|
void |
reinitRemovedEvent()
Set removed event to null.
|
boolean |
waitForEntryEvent(TestCacheEntryListener.EventType eventType) |
public CacheEntryEvent<Object> getAddedEvent()
public void reinitAddEvent()
public CacheEntryEvent<Object> getModifiedEvent()
public void reinitModifiedEvent()
public CacheEntryEvent<Object> getRemovedEvent()
public void reinitRemovedEvent()
public void cacheEntryAdded(CacheEntryEvent<Object> event)
cacheEntryAdded
in interface CacheEntryListener<Object>
public void cacheEntryModified(CacheEntryEvent<Object> event)
cacheEntryModified
in interface CacheEntryListener<Object>
public void cacheEntryRemoved(CacheEntryEvent<Object> event)
cacheEntryRemoved
in interface CacheEntryListener<Object>
public boolean waitForEntryEvent(TestCacheEntryListener.EventType eventType) throws InterruptedException
eventType
- event type.InterruptedException
- errorCopyright © 2004–2021 XWiki. All rights reserved.