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, wait
name
public void init(Vertx vertx, JsonObject configuration)
ServiceDiscoveryBackend
init
in interface ServiceDiscoveryBackend
vertx
- the vert.x instanceconfiguration
- the configuration if any.public void store(Record record, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackend
store
in interface ServiceDiscoveryBackend
record
- the recordresultHandler
- the completion handlerpublic void remove(Record record, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackend
remove
in interface ServiceDiscoveryBackend
record
- the recordresultHandler
- the completion handlerpublic void remove(String uuid, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackend
remove
in interface ServiceDiscoveryBackend
uuid
- the uuid / registration idresultHandler
- the completion handlerpublic void update(Record record, Handler<AsyncResult<Void>> resultHandler)
ServiceDiscoveryBackend
update
in interface ServiceDiscoveryBackend
record
- the record to updateresultHandler
- the completion handlerpublic void getRecords(Handler<AsyncResult<List<Record>>> resultHandler)
ServiceDiscoveryBackend
getRecords
in interface ServiceDiscoveryBackend
resultHandler
- the result handlerpublic void getRecord(String uuid, Handler<AsyncResult<Record>> resultHandler)
ServiceDiscoveryBackend
getRecord
in interface ServiceDiscoveryBackend
uuid
- the uuid / registration idresultHandler
- the result handlerCopyright © 2024 Eclipse. All rights reserved.