All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.reactive.adapter.Reactor Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.reactive.adapter;

import com.firefly.db.SQLClient;
import com.firefly.db.SQLConnection;
import com.firefly.reactive.adapter.db.ReactiveSQLClient;
import com.firefly.reactive.adapter.db.ReactiveSQLClientAdapter;
import com.firefly.reactive.adapter.db.ReactiveSQLConnection;
import com.firefly.reactive.adapter.db.ReactiveSQLConnectionAdapter;
import com.firefly.reactive.adapter.http.ReactiveHTTPClient;
import com.firefly.reactive.adapter.http.ReactiveHTTPClientSingleton;
import com.firefly.reactive.adapter.http.ReactiveHTTPsClientSingleton;

/**
 * Hello world!
 */
public interface Reactor {

    interface db {

        static ReactiveSQLClient fromSQLClient(SQLClient sqlClient) {
            return new ReactiveSQLClientAdapter(sqlClient);
        }

        static ReactiveSQLConnection fromSQLConnection(SQLConnection sqlConnection) {
            return new ReactiveSQLConnectionAdapter(sqlConnection);
        }
    }

    interface http {

        static ReactiveHTTPClient httpClient() {
            return ReactiveHTTPClientSingleton.getInstance().httpClient();
        }

        static ReactiveHTTPClient httpsClient() {
            return ReactiveHTTPsClientSingleton.getInstance().httpsClient();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy