Class WatchStateIndexWriter

  • All Implemented Interfaces:
    WatchStateWriter<org.elasticsearch.action.index.IndexResponse>

    public class WatchStateIndexWriter
    extends Object
    implements WatchStateWriter<org.elasticsearch.action.index.IndexResponse>
    • Constructor Detail

      • WatchStateIndexWriter

        public WatchStateIndexWriter​(String watchIdPrefix,
                                     String indexName,
                                     org.elasticsearch.client.Client client)
    • Method Detail

      • put

        public void put​(String watchId,
                        WatchState watchState,
                        org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> actionListener)
        Specified by:
        put in interface WatchStateWriter<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)