
org.ikasan.replay.service.SolrReplayServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ikasan-solr-client Show documentation
Show all versions of ikasan-solr-client Show documentation
Ikasan EIP Solr Client Abstraction
The newest version!
package org.ikasan.replay.service;
import org.ikasan.replay.dao.SolrReplayDao;
import org.ikasan.spec.persistence.BatchInsert;
import org.ikasan.spec.replay.ReplayEvent;
import org.ikasan.spec.solr.SolrService;
import org.ikasan.spec.solr.SolrServiceBase;
import java.util.List;
/**
* Created by Ikasan Development Team on 23/09/2017.
*/
public class SolrReplayServiceImpl extends SolrServiceBase implements SolrService, BatchInsert
{
private SolrReplayDao replayDao;
public SolrReplayServiceImpl(SolrReplayDao replayDao)
{
this.replayDao = replayDao;
if (this.replayDao == null)
{
throw new IllegalArgumentException("replayDao cannot be null!");
}
}
@Override
public void save(ReplayEvent save)
{
this.replayDao.setSolrUsername(this.solrUsername);
this.replayDao.setSolrPassword(this.solrPassword);
this.replayDao.save(save);
}
@Override
public void save(List save)
{
this.replayDao.setSolrUsername(this.solrUsername);
this.replayDao.setSolrPassword(this.solrPassword);
this.replayDao.save(save);
}
@Override
public void insert(List entities)
{
this.save(entities);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy