@Retention @Target @Documented public abstract @interface

SynchronousPreferred

implements Annotation
com.atlassian.bitbucket.hook.repository.SynchronousPreferred

Class Overview

Annotation to be used with PostRepositoryHook instances to signal that the hook prefers to be called synchronously, which allows the hook to write to the SCM client error and output streams directly for StandardRepositoryHookTrigger#REPO_PUSH pushes to the repository.

Note that annotating a PostRepositoryHook with @SynchronousPreferred does not guarantee that the hook will be called synchronously. For many RepositoryHookRequest#getTrigger() triggers hooks will only be invoked asynchronously.

If the hook should only be called synchronously, and should be skipped for asynchronous hook requests, set #asyncSupported() to false.

Summary

[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation