=str: various minor cleanups
This commit is contained in:
parent
0c6ed6d83d
commit
6af9ced35c
46 changed files with 188 additions and 231 deletions
23
akka-stream/src/main/scala/akka/stream/impl/FlowModule.scala
Normal file
23
akka-stream/src/main/scala/akka/stream/impl/FlowModule.scala
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://www.typesafe.com>
|
||||
*/
|
||||
package akka.stream.impl
|
||||
|
||||
import akka.stream._
|
||||
import akka.stream.impl.StreamLayout.Module
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
private[stream] trait FlowModule[In, Out, Mat] extends StreamLayout.Module {
|
||||
override def replaceShape(s: Shape) =
|
||||
if (s == shape) this
|
||||
else throw new UnsupportedOperationException("cannot replace the shape of a FlowModule")
|
||||
|
||||
val inPort = Inlet[In]("Flow.in")
|
||||
val outPort = Outlet[Out]("Flow.out")
|
||||
override val shape = new FlowShape(inPort, outPort)
|
||||
|
||||
override def subModules: Set[Module] = Set.empty
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue