Created
April 30, 2014 21:10
-
-
Save mosesn/d6235cba5f8387b6d7cc to your computer and use it in GitHub Desktop.
Adding Filters jankily to the current scrooge interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Iface { | |
def abyssTweet(tweet: Tweet): Future[Unit] | |
} | |
val instance: Iface | |
val abyssSvc: Service[Tweet, Unit] = Service.mk { tweet: Tweet => instance.abyssTweet(tweet) } | |
val timeoutFilter: TimeoutFilter[Tweet, Unit] | |
val retryingFilter: RetryingFilter[Tweet, Unit] | |
val filteredSvc: Service[Tweet, Unit] = retryingFilter andThen timeoutFilter andThen abyssSvc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment