com.github.triceo.splitlog.ConsumerRegistrar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of splitlog-core Show documentation
Show all versions of splitlog-core Show documentation
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.
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