/** * Creates an empty file with the specified <code>path</code>, asynchronously. * @param path path to the file * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCreateFile} instead */ @Deprecated() public Observable<Void> createFileObservable(String path) { io.vertx.rx.java.ObservableFuture<Void> handler = io.vertx.rx.java.RxHelper.observableFuture(); createFile(path, handler.toHandler()); return handler; }
/** * Creates an empty file with the specified <code>path</code> and permissions <code>perms</code>, asynchronously. * @param path path to the file * @param perms the permissions string * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCreateFile} instead */ @Deprecated() public Observable<Void> createFileObservable(String path, String perms) { io.vertx.rx.java.ObservableFuture<Void> handler = io.vertx.rx.java.RxHelper.observableFuture(); createFile(path, perms, handler.toHandler()); return handler; }
/** * Creates an empty file with the specified <code>path</code>, asynchronously. * @param path path to the file * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCreateFile(String path) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createFile(path, fut); })); }
/** * Creates an empty file with the specified <code>path</code> and permissions <code>perms</code>, asynchronously. * @param path path to the file * @param perms the permissions string * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCreateFile(String path, String perms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createFile(path, perms, fut); })); }
/** * Creates an empty file with the specified <code>path</code> and permissions <code>perms</code>, asynchronously. * @param path path to the file * @param perms the permissions string * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCreateFile(String path, String perms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createFile(path, perms, fut); })); }
/** * Creates an empty file with the specified <code>path</code>, asynchronously. * @param path path to the file * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCreateFile(String path) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createFile(path, fut); })); }