org.mentalog.AsyncThread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-log Show documentation
Show all versions of menta-log Show documentation
A log library that embraces the kiss principle.
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();
}
}