You can use Observable.create for this:
public static Observable<String> createMyObservable(final String all, final Integer my, final Boolean parameters) { return new Observable.create(new Observable.OnSubscribe<String>(){ @Override public void call(Subscriber<? super String> subscriber) {
Please note that all parameters must be declared final or the code will not compile.
If you expect your input parameters to change over time, they can be observable themselves, and you could use combineLatest or zip to combine your values ββwith your other observables, or maybe map or flatMap to create new Observables based on the values your input.
source share