com.tangosol.net.events.annotation.CoherenceLifecycleEvents Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* Copyright (c) 2020 Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net.events.annotation;
import com.tangosol.net.events.CoherenceLifecycleEvent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* CoherenceLifecycleEvents is an annotation that should be applied to
* {@link com.tangosol.net.events.EventInterceptor} implementations
* that want to receive {@link CoherenceLifecycleEvent}s.
*
* @author jk 2020.12.16
* @since 20.12
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
@Events
public @interface CoherenceLifecycleEvents
{
/**
* This element specifies all types of {@link CoherenceLifecycleEvent.Type}s the
* interceptor would like to be invoked on.
*
* If not specified, the interceptor will be registered to handle ALL
* {@link CoherenceLifecycleEvent.Type}s.
*
* @return all {@link CoherenceLifecycleEvent.Type}s the
* {@link com.tangosol.net.events.EventInterceptor} would like to
* receive notifications on
*/
CoherenceLifecycleEvent.Type[] value() default {};
}