public static FileProps newInstance(io.vertx.core.file.FileProps arg) { return arg != null ? new FileProps(arg) : null; } }
public void handle(AsyncResult<io.vertx.core.file.FileProps> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.file.FileProps.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
/** * Determine the sizes of all given files * @param files the files * @param vertx the Vert.x instance * @return an observable that emits pairs of file names and sizes */ private Observable<Pair<String, Long>> getFileSizes(List<String> files, Vertx vertx) { FileSystem fs = vertx.fileSystem(); return Observable.from(files) .flatMapSingle(path -> fs.rxProps(path).map(props -> Pair.of(path, props.size()))); }
public void handle(AsyncResult<io.vertx.core.file.FileProps> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.file.FileProps.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.file.FileProps> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.file.FileProps.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public static FileProps newInstance(io.vertx.core.file.FileProps arg) { return arg != null ? new FileProps(arg) : null; } }
public void handle(AsyncResult<io.vertx.core.file.FileProps> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.file.FileProps.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
/** * Blocking version of {@link io.vertx.rxjava.core.file.FileSystem#lprops} * @param path * @return */ public io.vertx.rxjava.core.file.FileProps lpropsBlocking(String path) { io.vertx.rxjava.core.file.FileProps ret = io.vertx.rxjava.core.file.FileProps.newInstance(delegate.lpropsBlocking(path)); return ret; }
/** * Blocking version of {@link io.vertx.rxjava.core.file.FileSystem#props} * @param path * @return */ public io.vertx.rxjava.core.file.FileProps propsBlocking(String path) { io.vertx.rxjava.core.file.FileProps ret = io.vertx.rxjava.core.file.FileProps.newInstance(delegate.propsBlocking(path)); return ret; }
/** * Blocking version of {@link io.vertx.rxjava.core.file.FileSystem#lprops} * @param path * @return */ public io.vertx.rxjava.core.file.FileProps lpropsBlocking(String path) { io.vertx.rxjava.core.file.FileProps ret = io.vertx.rxjava.core.file.FileProps.newInstance(delegate.lpropsBlocking(path)); return ret; }
/** * Blocking version of {@link io.vertx.rxjava.core.file.FileSystem#props} * @param path * @return */ public io.vertx.rxjava.core.file.FileProps propsBlocking(String path) { io.vertx.rxjava.core.file.FileProps ret = io.vertx.rxjava.core.file.FileProps.newInstance(delegate.propsBlocking(path)); return ret; }