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

com.jpattern.service.log.reader.NullQueueMessages Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
package com.jpattern.service.log.reader;

import java.util.Iterator;

/**
 * 
 * @author Francesco Cinà 07/ago/2009
 *
 */
public class NullQueueMessages implements IQueueMessages{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void offer(String aMessage) {
	}

	public IQueueMessage peek() {
		return new QueueMessage(0, "", false);
	}

	public IQueueMessage poll() {
		return new QueueMessage(0, "", false);
	}

	public int size() {
		return 0;
	}

	public IQueueMessage get(long index) {
		return new QueueMessage(index, "", false);
	}

	public Iterator iterator() {

		return new NullIterator();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy