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

com.twitter.finagle.example.thrift.ThriftClient.scala Maven / Gradle / Ivy

The newest version!
package com.twitter.finagle.example.thrift

import com.twitter.finagle.example.thriftscala.Hello
import com.twitter.finagle.Thrift
import com.twitter.util.Future

object ThriftClient {
  def main(args: Array[String]) {
    //#thriftclientapi
    val client = Thrift.newIface[Hello.FutureIface]("localhost:8080")
    client.hi() onSuccess { response =>
      println("Received response: " + response)
    }
    //#thriftclientapi
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy