console output queue

This commit is contained in:
Wolfgang Hottgenroth 2018-06-11 17:32:14 +02:00
parent b9fbcf8e66
commit 07f57ba4d2
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4

View File

@ -0,0 +1,30 @@
package de.hottis.common;
import java.io.Serializable;
import java.util.Properties;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class ConsoleQueue<T extends Serializable> implements MyQueue<T> {
final protected Logger logger = LogManager.getRootLogger();
private final Properties config;
public ConsoleQueue(Properties config) {
this.config = config;
}
public void init() throws HottisCommonException {
}
public T dequeue() throws HottisCommonException {
throw new HottisCommonException("No implemented");
}
public void enqueue(T item) throws HottisCommonException {
logger.debug("ConsoleQueue: message enqueued: " + item.toString());
}
}