2015-01-28 14:19:50 +01:00
|
|
|
/**
|
2016-01-25 10:16:14 +01:00
|
|
|
* Copyright (C) 2015-2016 Typesafe Inc. <http://www.typesafe.com>
|
2015-01-28 14:19:50 +01:00
|
|
|
*/
|
|
|
|
|
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) =
|
2016-02-15 10:37:19 +01:00
|
|
|
if (s != shape) throw new UnsupportedOperationException("cannot replace the shape of a FlowModule")
|
|
|
|
|
else this
|
2015-01-28 14:19:50 +01:00
|
|
|
|
2015-06-13 16:28:38 -04:00
|
|
|
val inPort = Inlet[In]("Flow.in")
|
|
|
|
|
val outPort = Outlet[Out]("Flow.out")
|
2015-01-28 14:19:50 +01:00
|
|
|
override val shape = new FlowShape(inPort, outPort)
|
|
|
|
|
|
|
|
|
|
override def subModules: Set[Module] = Set.empty
|
|
|
|
|
}
|
|
|
|
|
|