io.scalecube.services.annotations.BeforeDestroy Maven / Gradle / Ivy
The newest version!
package io.scalecube.services.annotations;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* This annotation is used to mark the method which will be executed before shutdown of service.
*
* NOTE: scalecube services doesn't support {@code javax.annotation.PreDestroy} since Java API
* Specification for it has strict limitation for annotated method.
*/
@Documented
@Retention(RUNTIME)
@Target(METHOD)
public @interface BeforeDestroy {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy