@Override public ConsulService infoAclToken(String id, Handler<AsyncResult<AclToken>> tokenHandler) { consulClient.infoAclToken(id, tokenHandler); return this; }
/** * Get info of Acl token * @param id the ID of token * @param tokenHandler will be provided with token * @return reference to this, for fluency */ public io.vertx.rxjava.ext.consul.ConsulClient infoAclToken(String id, Handler<AsyncResult<AclToken>> tokenHandler) { delegate.infoAclToken(id, tokenHandler); return this; }
/** * Get info of Acl token * @param id the ID of token * @param tokenHandler will be provided with token * @return reference to this, for fluency */ public io.vertx.rxjava.ext.consul.ConsulClient infoAclToken(String id, Handler<AsyncResult<AclToken>> tokenHandler) { delegate.infoAclToken(id, tokenHandler); return this; }
public static io.vertx.ext.consul.ConsulClient infoAclToken(io.vertx.ext.consul.ConsulClient j_receiver, java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> tokenHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.infoAclToken(id, tokenHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.AclToken>>() { public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.AclToken> ar) { tokenHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null)); } } : null)); return j_receiver; } public static io.vertx.ext.consul.ConsulClient fireEvent(io.vertx.ext.consul.ConsulClient j_receiver, java.lang.String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
.setRules("key \"bar/\" { policy = \"read\" }"); ctx.masterClient().createAclToken(init, tc.asyncAssertSuccess(id -> { ctx.masterClient().infoAclToken(id, tc.asyncAssertSuccess(token -> { tc.assertEquals(id, token.getId()); tc.assertEquals(init.getName(), token.getName()); tc.assertEquals(init.getRules(), token.getRules()); ctx.masterClient().cloneAclToken(id, tc.asyncAssertSuccess(clonedId -> { ctx.masterClient().infoAclToken(clonedId, tc.asyncAssertSuccess(clonedToken -> { tc.assertEquals(clonedId, clonedToken.getId()); tc.assertEquals(token.getName(), clonedToken.getName()); .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()); tc.assertEquals(token2.getName(), updatedToken.getName());