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

com.raelity.lib.eventbus.WeakAllowConcurrentEvents Maven / Gradle / Ivy

The newest version!
/*
 * Portions created by Ernie Rael are
 * Copyright (C) 2024 Ernie Rael.  All Rights Reserved.
 *
 * The contents of this file are subject to the Mozilla Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * Contributor(s): Ernie Rael 
 */

package com.raelity.lib.eventbus;

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

/**
 * Marks a weak event subscriber method as being thread-safe
 * and in a weak event bus receiver.
 * This annotation indicates that EventBus may invoke the event
 * subscriber simultaneously from multiple threads.
 * 

* This does not mark the method, and so should be used in combination * with {@link WeakSubscribe}. */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) public @interface WeakAllowConcurrentEvents { }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy