Questions tagged [twitter-util]

Twitter Util is a collection of general purpose Scala tools developed and open sourced by Twitter.

Twitter Util is a collection of general purpose Scala tools developed and open sourced by Twitter. It provides (among many other things) the future implementation used in Finagle and many other projects at Twitter.

23 questions
0
votes
1 answer

How to compare Scala Twitter Futures?

I'm working on a backend migration on some scala code. The code current returns com.twitter.util.Future[A] and I am taking the response from my new backend and transforming it into Future[A] as well To monitor the migration, I want to do a…
DFL
  • 53
  • 8
0
votes
1 answer

Return Twitter's Future within a certain duration

According to Twitter Util's Future documentation, Future.within() or .by() "Returns a new Future that fails if it is not satisfied before the given time". I was trying to use this, in Java, to return a (Future) String if getDownload() takes less…
0
votes
1 answer

Best way to convert a Java Future to a Twitter Future

In my application, I am converting a java.concurrent.future to a Twitter Future like so: val myTwitterFuture = FuturePool.unboundedPool{ myJavaFuture.get} Is this the correct way to do so, or is there a preferred method?
foobarbaz
  • 508
  • 1
  • 10
  • 27
0
votes
1 answer

Async logging using Twitter Futures in Scala

I'm using twitter util futures in my project. I want to add logging to trace a request through the components using MDC. I couldn't find a good way to add that for twitter futures as there is no execution context that runs the callbacks. I couldn't…
Nag
  • 1
0
votes
1 answer

How do I execute the code and see the results using twitter util-eval

I am trying to compile and execute a "hello world" program using twitter util-eval library. But not able to get results printed. My intention is not just to compile and execute hello world example, large scala files with dependencies should compile…
nutim
  • 169
  • 3
  • 15
0
votes
1 answer

Forcing an AsyncStream[A] into a Seq[A] in scala

I am specifically using twitter's AsyncStream and I need to take the results of concurrent processing, and make it into a Seq, but the only way I've managed to get working is horrendous. This feels like it should be a one liner, but all my attempts…
L0ne
  • 470
  • 3
  • 10
0
votes
0 answers

Storage tweets using spark in a multicore cluster

I want to store realtime tweet following some filtering criteria in a MySQL database. I want to understand which approach is better given the fact that i have a 16 CPU machine. Since for my case is better to use the streaming api it's possible to…
LuigiDB
  • 72
  • 9
0
votes
2 answers

Missing authData of parse user

I' m having bit of a problem with parse android library. Auth data of the users is missing in results of query. Therefore ParseTwitterUtils can't tell if the user is linked or not.
Mukul
  • 141
  • 1
  • 11
1
2