public class ElasticFeedbackRepository extends Object implements FeedbackRepository
Constructor and Description |
---|
ElasticFeedbackRepository(io.searchbox.client.JestClient jestClient,
IndexStrategy indexStrategy,
int bulkRetryCount,
ElasticFeedbackRepositoryInitializer initializer) |
Modifier and Type | Method and Description |
---|---|
Collection<AlarmFeedback> |
getFeedback(String situationKey) |
void |
persist(Collection<AlarmFeedback> feedback) |
public ElasticFeedbackRepository(io.searchbox.client.JestClient jestClient, IndexStrategy indexStrategy, int bulkRetryCount, ElasticFeedbackRepositoryInitializer initializer)
public void persist(Collection<AlarmFeedback> feedback) throws FeedbackException
persist
in interface FeedbackRepository
FeedbackException
public Collection<AlarmFeedback> getFeedback(String situationKey) throws FeedbackException
getFeedback
in interface FeedbackRepository
FeedbackException
Copyright © 2019. All rights reserved.