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 FeedbackRepositoryFeedbackExceptionpublic Collection<AlarmFeedback> getFeedback(String situationKey) throws FeedbackException
getFeedback in interface FeedbackRepositoryFeedbackExceptionCopyright © 2019. All rights reserved.