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

com.github.triceo.splitlog.ConsumerRegistrar Maven / Gradle / Ivy

Go to download

These are the core parts of splitlog. This is where the implementations of the public APIs live. Classes from this package come with no API stability guarantees.

There is a newer version: 1.7.2
Show newest version
package com.github.triceo.splitlog;

import com.github.triceo.splitlog.api.MessageConsumer;
import com.github.triceo.splitlog.api.MessageProducer;

/**
 * This is an internal API so that the core can register consumers without
 * having to go through
 * {@link #startConsuming(com.github.triceo.splitlog.api.MessageListener)}.
 *
 * @param consumer
 *            Consumer to register.
 */
interface ConsumerRegistrar

> extends MessageProducer

{ /** * Consumers registered through here will be available through all the * standard methods such as {@link #isConsuming(MessageConsumer)} or * {@link #stopConsuming(MessageConsumer)}. * * @param consumer * Consumer to register. * @return True if newly registered, false if registered already. */ boolean registerConsumer(MessageConsumer

consumer); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy