You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
593 B
27 lines
593 B
package mightypork.utils.eventbus.clients;
|
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
|
/**
|
|
* Client containing child clients. According to the contract, if the collection
|
|
* of clients is ordered, the clients will be served in that order. In any case,
|
|
* the {@link DelegatingClient} itself will be served beforehand.
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public interface DelegatingClient {
|
|
|
|
/**
|
|
* @return collection of child clients. Can not be null.
|
|
*/
|
|
public Collection<?> getChildClients();
|
|
|
|
|
|
/**
|
|
* @return true if delegating is active
|
|
*/
|
|
public boolean doesDelegate();
|
|
|
|
}
|
|
|