|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NodeEvicted.java | - | - | - | - |
|
1 | package org.jboss.cache.notifications.annotation; | |
2 | ||
3 | import java.lang.annotation.ElementType; | |
4 | import java.lang.annotation.Retention; | |
5 | import java.lang.annotation.RetentionPolicy; | |
6 | import java.lang.annotation.Target; | |
7 | ||
8 | /** | |
9 | * This annotation should be used on methods that need to be notified when a node is evicted. | |
10 | * <p/> | |
11 | * Methods annotated with this annotation should be public and take in a single parameter, a {@link org.jboss.cache.notifications.event.NodeEvictedEvent} | |
12 | * otherwise an {@link org.jboss.cache.notifications.IncorrectCacheListenerException} will be thrown when registering | |
13 | * your cache listener. | |
14 | * | |
15 | * @author <a href="mailto:manik@jboss.org">Manik Surtani</a> | |
16 | * @see CacheListener | |
17 | * @see org.jboss.cache.notifications.annotation.NodeLoaded | |
18 | * @since 2.0.0 | |
19 | */ | |
20 | @Retention(RetentionPolicy.RUNTIME) | |
21 | @Target(ElementType.METHOD) | |
22 | public @interface NodeEvicted | |
23 | { | |
24 | } |
|