Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created August 6, 2013 17:53
Show Gist options
  • Select an option

  • Save debasishg/6166837 to your computer and use it in GitHub Desktop.

Select an option

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
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