/** * Update Acl token * @param token properties of the token to be updated * @param idHandler will be provided with ID of updated * @return reference to this, for fluency */ public io.vertx.rxjava.ext.consul.ConsulClient updateAclToken(AclToken token, Handler<AsyncResult<String>> idHandler) { delegate.updateAclToken(token, idHandler); return this; }
@Override public ConsulService updateAclToken(AclToken token, Handler<AsyncResult<String>> idHandler) { consulClient.updateAclToken(token, idHandler); return this; }
/** * Update Acl token * @param token properties of the token to be updated * @param idHandler will be provided with ID of updated * @return reference to this, for fluency */ public io.vertx.rxjava.ext.consul.ConsulClient updateAclToken(AclToken token, Handler<AsyncResult<String>> idHandler) { delegate.updateAclToken(token, idHandler); return this; }
public static io.vertx.ext.consul.ConsulClient updateAclToken(io.vertx.ext.consul.ConsulClient j_receiver, java.util.Map<String, Object> token, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> idHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.updateAclToken(token != null ? new io.vertx.ext.consul.AclToken(io.vertx.core.impl.ConversionHelper.toJsonObject(token)) : null, idHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() { public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) { idHandler.handle(ar.map(event -> event)); } } : null)); return j_receiver; } public static io.vertx.ext.consul.ConsulClient listAclTokens(io.vertx.ext.consul.ConsulClient j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.util.Map<String, Object>>>> resultHandler) {
.setName("updatedName") .setRules("key \"bar/\" { policy = \"write\" }"); ctx.masterClient().updateAclToken(token2, tc.asyncAssertSuccess(updatedId -> { ctx.masterClient().infoAclToken(updatedId, tc.asyncAssertSuccess(updatedToken -> { tc.assertEquals(token2.getId(), updatedToken.getId());