public interface ServiceDiscoveryBackend
 check DefaultServiceDiscoveryBackend for more details.
| Modifier and Type | Method and Description | 
|---|---|
| void | getRecord(String uuid,
         Handler<AsyncResult<Record>> resultHandler)Get the record with the given uuid. | 
| void | getRecords(Handler<AsyncResult<List<Record>>> resultHandler)Gets all the records | 
| void | init(Vertx vertx,
    JsonObject config)Initializes the backend. | 
| default String | name() | 
| void | remove(Record record,
      Handler<AsyncResult<Record>> resultHandler)Removes a record. | 
| void | remove(String uuid,
      Handler<AsyncResult<Record>> resultHandler)Removes a records based on its UUID. | 
| void | store(Record record,
     Handler<AsyncResult<Record>> resultHandler)Stores a record. | 
| void | update(Record record,
      Handler<AsyncResult<Void>> resultHandler)Updates a record | 
default String name()
void init(Vertx vertx, JsonObject config)
vertx - the vert.x instanceconfig - the configuration if any.void store(Record record, Handler<AsyncResult<Record>> resultHandler)
record - the recordresultHandler - the completion handlervoid remove(Record record, Handler<AsyncResult<Record>> resultHandler)
record - the recordresultHandler - the completion handlervoid remove(String uuid, Handler<AsyncResult<Record>> resultHandler)
uuid - the uuid / registration idresultHandler - the completion handlervoid update(Record record, Handler<AsyncResult<Void>> resultHandler)
record - the record to updateresultHandler - the completion handlervoid getRecords(Handler<AsyncResult<List<Record>>> resultHandler)
resultHandler - the result handlervoid getRecord(String uuid, Handler<AsyncResult<Record>> resultHandler)
uuid - the uuid / registration idresultHandler - the result handlerCopyright © 2022 Eclipse. All rights reserved.