com.julienviet.rxjava.pgclient.PgStream Maven / Gradle / Ivy
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.julienviet.rxjava.pgclient;
import java.util.Map;
import rx.Observable;
import rx.Single;
import io.vertx.rxjava.core.streams.ReadStream;
import io.vertx.core.Handler;
@io.vertx.lang.rxjava.RxGen(com.julienviet.pgclient.PgStream.class)
public class PgStream implements ReadStream {
public static final io.vertx.lang.rxjava.TypeArg __TYPE_ARG = new io.vertx.lang.rxjava.TypeArg<>(
obj -> new PgStream((com.julienviet.pgclient.PgStream) obj),
PgStream::getDelegate
);
private final com.julienviet.pgclient.PgStream delegate;
public final io.vertx.lang.rxjava.TypeArg __typeArg_0;
public PgStream(com.julienviet.pgclient.PgStream delegate) {
this.delegate = delegate;
this.__typeArg_0 = io.vertx.lang.rxjava.TypeArg.unknown();
}
public PgStream(com.julienviet.pgclient.PgStream delegate, io.vertx.lang.rxjava.TypeArg typeArg_0) {
this.delegate = delegate;
this.__typeArg_0 = typeArg_0;
}
public com.julienviet.pgclient.PgStream getDelegate() {
return delegate;
}
private rx.Observable observable;
public synchronized rx.Observable toObservable() {
if (observable == null) {
java.util.function.Function