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

org.mentalog.AsyncThread Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.mentalog;

import org.mentaqueue.wait.WaitStrategy;



public class AsyncThread {

	private final static void throwException() {
		throw new IllegalStateException("Asynchronous logging is only supported on the extended version. Check http://mentalog.soliveirajr.com for more details.");
	}
	
	public static void setCapacity(int capacity) {
		throwException();
	}
	
	public static void setPriority(int priority) {
		throwException();
	}
	
	public static void setConsumerWaitStrategy(WaitStrategy strategy) {
		throwException();
	}
	
	public static void setProducerWaitStrategy(WaitStrategy strategy) {
		throwException();
	}
	
	public static void init(boolean consumerLazySet) {
		throwException();
	}
	
	public static Thread thread() {
		throwException();
		return null;
	}
	
	public static void start() {
		throwException();
	}
	
	public final static LogEvent getLogEvent(Logger logger) {
		throwException();
		return null;
	}
	
	public final static void flush(boolean lazySet) {
		throwException();
	}
	
	public final static void logLater(Logger logger, boolean lazySet, Object ... objs) {
		throwException();
	}
	
	public static void drainAndStop() {
		throwException();
	}
	
	public static void kill() {
		throwException();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy