All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.datakernel.worker.Primary Maven / Gradle / Ivy

package io.datakernel.worker;

import io.datakernel.di.annotation.NameAnnotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Annotation marker for binding one object which is 'primary' of its kind.
 * For example, primary eventloop among worker eventloops and so on.
 */
@NameAnnotation
@Target({FIELD, PARAMETER, METHOD})
@Retention(RUNTIME)
public @interface Primary {
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy