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

org.dataloader.annotations.GuardedBy Maven / Gradle / Ivy

There is a newer version: 2022-09-12T23-25-35-08559ba
Show newest version
package org.dataloader.annotations;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.CLASS;

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

/**
 * Indicates that the annotated element should be used only while holding the specified lock.
 */
@Target({FIELD, METHOD})
@Retention(CLASS)
public @interface GuardedBy {

  /**
   * @return The lock that should be held.
   */
  String value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy