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

ru.taskurotta.recipes.pcollection.worker.CollectionProducerImpl Maven / Gradle / Ivy

The newest version!
package ru.taskurotta.recipes.pcollection.worker;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Required;
import ru.taskurotta.recipes.pcollection.PromiseCollectionArbiter;
import ru.taskurotta.recipes.pcollection.model.ModelObjectVO;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * User: dimadin
 * Date: 22.07.13 14:32
 */
public class CollectionProducerImpl implements CollectionProducer {

    private static final Logger logger = LoggerFactory.getLogger(CollectionProducerImpl.class);
    private PromiseCollectionArbiter arbiter;

    @Override
    public List produceList(Integer size) {
        arbiter.notify("produceList");
        List result = new ArrayList();
        for(int i = 0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy