public class RedisBackendService extends Object implements ServiceDiscoveryBackend
| Constructor and Description | 
|---|
RedisBackendService()  | 
| 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 configuration)
Initializes the backend. 
 | 
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 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnamepublic void init(Vertx vertx, JsonObject configuration)
ServiceDiscoveryBackendinit in interface ServiceDiscoveryBackendvertx - the vert.x instanceconfiguration - the configuration if any.public void store(Record record, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackendstore in interface ServiceDiscoveryBackendrecord - the recordresultHandler - the completion handlerpublic void remove(Record record, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackendremove in interface ServiceDiscoveryBackendrecord - the recordresultHandler - the completion handlerpublic void remove(String uuid, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackendremove in interface ServiceDiscoveryBackenduuid - the uuid / registration idresultHandler - the completion handlerpublic void update(Record record, Handler<AsyncResult<Void>> resultHandler)
ServiceDiscoveryBackendupdate in interface ServiceDiscoveryBackendrecord - the record to updateresultHandler - the completion handlerpublic void getRecords(Handler<AsyncResult<List<Record>>> resultHandler)
ServiceDiscoveryBackendgetRecords in interface ServiceDiscoveryBackendresultHandler - the result handlerpublic void getRecord(String uuid, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackendgetRecord in interface ServiceDiscoveryBackenduuid - the uuid / registration idresultHandler - the result handlerCopyright © 2020 Eclipse. All rights reserved.