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

com.twitter.finagle.example.thrift.ThriftServer.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.{Await, Future}

object ThriftServer {
  def main(args: Array[String]) {
    //#thriftserverapi
    val server = Thrift.serveIface("localhost:8080", new Hello[Future] {
      def hi() = Future.value("hi")
    })
    Await.ready(server)
    //#thriftserverapi
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy