Class WatchStateIndexWriter
- java.lang.Object
-
- com.floragunn.signals.watch.state.WatchStateIndexWriter
-
- All Implemented Interfaces:
WatchStateWriter<org.elasticsearch.action.index.IndexResponse>
public class WatchStateIndexWriter extends Object implements WatchStateWriter<org.elasticsearch.action.index.IndexResponse>
-
-
Constructor Summary
Constructors Constructor Description WatchStateIndexWriter(String watchIdPrefix, String indexName, org.elasticsearch.client.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidput(String watchId, WatchState watchState)voidput(String watchId, WatchState watchState, org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> actionListener)voidputAll(Map<String,WatchState> idToStateMap)voidputIfAbsent(String watchId, WatchState watchState)voidputIfAbsent(String watchId, WatchState watchState, org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> actionListener)
-
-
-
Method Detail
-
put
public void put(String watchId, WatchState watchState)
- Specified by:
putin interfaceWatchStateWriter<org.elasticsearch.action.index.IndexResponse>
-
put
public void put(String watchId, WatchState watchState, org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> actionListener)
- Specified by:
putin interfaceWatchStateWriter<org.elasticsearch.action.index.IndexResponse>
-
putAll
public void putAll(Map<String,WatchState> idToStateMap)
- Specified by:
putAllin interfaceWatchStateWriter<org.elasticsearch.action.index.IndexResponse>
-
putIfAbsent
public void putIfAbsent(String watchId, WatchState watchState)
-
putIfAbsent
public void putIfAbsent(String watchId, WatchState watchState, org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> actionListener)
-
-