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

com.codemettle.akkasolr.ext.DefaultConnectionProvider.scala Maven / Gradle / Ivy

/*
 * DefaultConnectionProvider.scala
 *
 * Updated: Oct 3, 2014
 *
 * Copyright (c) 2014, CodeMettle
 */
package com.codemettle.akkasolr.ext

import com.codemettle.akkasolr.client.ClientConnection

import akka.actor.{ExtendedActorSystem, Props}
import akka.http.scaladsl.model.Uri
import akka.stream.Materializer

/**
 * @author steven
 *
 */
class DefaultConnectionProvider extends ConnectionProvider {
    override def connectionActorProps(uri: Uri, username: Option[String], password: Option[String],
                                      system: ExtendedActorSystem)(implicit mat: Materializer): Props =
        ClientConnection.props(uri, username, password)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy