mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
26 lines
839 B
Java
26 lines
839 B
Java
package org.briarproject.api.crypto;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.Target;
|
|
|
|
import javax.inject.Qualifier;
|
|
|
|
import static java.lang.annotation.ElementType.FIELD;
|
|
import static java.lang.annotation.ElementType.METHOD;
|
|
import static java.lang.annotation.ElementType.PARAMETER;
|
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|
|
|
/**
|
|
* Annotation for injecting the executor for long-running crypto tasks. Also
|
|
* used for annotating methods that should run on the crypto executor.
|
|
* <p>
|
|
* The contract of this executor is that tasks may be run concurrently, and
|
|
* submitting a task will never block. Tasks must not run indefinitely. Tasks
|
|
* submitted during shutdown are discarded.
|
|
*/
|
|
@Qualifier
|
|
@Target({FIELD, METHOD, PARAMETER})
|
|
@Retention(RUNTIME)
|
|
public @interface CryptoExecutor {
|
|
}
|