Created
August 6, 2013 17:53
-
-
Save debasishg/6166837 to your computer and use it in GitHub Desktop.
Define the stages of Akka IO Pipeline and let Akka handle the lower levels
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
| val stages = Seq( | |
| Some(new ResponseHandling), | |
| Some(new Serializing), | |
| backpressureBufferSettings map { | |
| case BackpressureBufferSettings(lowBytes, highBytes, maxBytes) => | |
| new BackpressureBuffer(lowBytes, highBytes, maxBytes) | |
| } | |
| ).flatten.reduceLeft(_ >> _) | |
| TcpPipelineHandler.withLogger(log, stages) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment