Class RedisBackendService
java.lang.Object
io.vertx.servicediscovery.backend.redis.RedisBackendService
- All Implemented Interfaces:
ServiceDiscoveryBackend
An implementation of the discovery backend based on Redis.
- Author:
- Clement Escoffier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetRecord(String uuid, Handler<AsyncResult<Record>> resultHandler) Get the record with the given uuid.voidgetRecords(Handler<AsyncResult<List<Record>>> resultHandler) Gets all the recordsvoidinit(Vertx vertx, JsonObject configuration) Initializes the backend.voidremove(Record record, Handler<AsyncResult<Record>> resultHandler) Removes a record.voidremove(String uuid, Handler<AsyncResult<Record>> resultHandler) Removes a records based on its UUID.voidstore(Record record, Handler<AsyncResult<Record>> resultHandler) Stores a record.voidupdate(Record record, Handler<AsyncResult<Void>> resultHandler) Updates a recordMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServiceDiscoveryBackend
name
-
Constructor Details
-
RedisBackendService
public RedisBackendService()
-
-
Method Details
-
init
Description copied from interface:ServiceDiscoveryBackendInitializes the backend.- Specified by:
initin interfaceServiceDiscoveryBackend- Parameters:
vertx- the vert.x instanceconfiguration- the configuration if any.
-
store
Description copied from interface:ServiceDiscoveryBackendStores a record.- Specified by:
storein interfaceServiceDiscoveryBackend- Parameters:
record- the recordresultHandler- the completion handler
-
remove
Description copied from interface:ServiceDiscoveryBackendRemoves a record.- Specified by:
removein interfaceServiceDiscoveryBackend- Parameters:
record- the recordresultHandler- the completion handler
-
remove
Description copied from interface:ServiceDiscoveryBackendRemoves a records based on its UUID.- Specified by:
removein interfaceServiceDiscoveryBackend- Parameters:
uuid- the uuid / registration idresultHandler- the completion handler
-
update
Description copied from interface:ServiceDiscoveryBackendUpdates a record- Specified by:
updatein interfaceServiceDiscoveryBackend- Parameters:
record- the record to updateresultHandler- the completion handler
-
getRecords
Description copied from interface:ServiceDiscoveryBackendGets all the records- Specified by:
getRecordsin interfaceServiceDiscoveryBackend- Parameters:
resultHandler- the result handler
-
getRecord
Description copied from interface:ServiceDiscoveryBackendGet the record with the given uuid.- Specified by:
getRecordin interfaceServiceDiscoveryBackend- Parameters:
uuid- the uuid / registration idresultHandler- the result handler
-