|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.io.PipelineFactory
public class PipelineFactory
This class contains static factory methods which turn a pipeline context
and a PipelineStage
into readily usable pipelines.
Constructor Summary | |
---|---|
PipelineFactory()
|
Method Summary | ||
---|---|---|
static
|
buildFunctionTriple(Ctx ctx,
PipelineStage<Ctx,CmdAbove,CmdBelow,EvtAbove,EvtBelow> stage)
Scala API: build the pipeline and return a pair of functions representing the command and event pipelines. |
|
static
|
buildWithSink(Ctx ctx,
PipelineStage<Ctx,CmdAbove,CmdBelow,EvtAbove,EvtBelow> stage,
PipelineSink<CmdBelow,EvtAbove> callback)
Java API: build the pipeline attaching the given callback object to its outputs. |
|
static
|
buildWithSinkFunctions(Ctx ctx,
PipelineStage<Ctx,CmdAbove,CmdBelow,EvtAbove,EvtBelow> stage,
scala.Function1<scala.util.Try<CmdBelow>,scala.runtime.BoxedUnit> commandSink,
scala.Function1<scala.util.Try<EvtAbove>,scala.runtime.BoxedUnit> eventSink)
Scala API: build the pipeline attaching the given command and event sinks to its outputs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PipelineFactory()
Method Detail |
---|
public static <Ctx extends PipelineContext,CmdAbove,CmdBelow,EvtAbove,EvtBelow> PipelinePorts<CmdAbove,CmdBelow,EvtAbove,EvtBelow> buildFunctionTriple(Ctx ctx, PipelineStage<Ctx,CmdAbove,CmdBelow,EvtAbove,EvtBelow> stage)
Exceptions thrown by the pipeline stages will not be caught.
ctx
- The context object for this pipelinestage
- The (composite) pipeline stage from whcih to build the pipeline
public static <Ctx extends PipelineContext,CmdAbove,CmdBelow,EvtAbove,EvtBelow> PipelineInjector<CmdAbove,EvtBelow> buildWithSinkFunctions(Ctx ctx, PipelineStage<Ctx,CmdAbove,CmdBelow,EvtAbove,EvtBelow> stage, scala.Function1<scala.util.Try<CmdBelow>,scala.runtime.BoxedUnit> commandSink, scala.Function1<scala.util.Try<EvtAbove>,scala.runtime.BoxedUnit> eventSink)
Failure
into the respective sink.
Exceptions thrown while processing management commands are not caught.
ctx
- The context object for this pipelinestage
- The (composite) pipeline stage from whcih to build the pipelinecommandSink
- The function to invoke for commands or command failureseventSink
- The function to invoke for events or event failures
public static <Ctx extends PipelineContext,CmdAbove,CmdBelow,EvtAbove,EvtBelow> PipelineInjector<CmdAbove,EvtBelow> buildWithSink(Ctx ctx, PipelineStage<Ctx,CmdAbove,CmdBelow,EvtAbove,EvtBelow> stage, PipelineSink<CmdBelow,EvtAbove> callback)
Failure
into the respective sink.
Exceptions thrown while processing management commands are not caught.
ctx
- The context object for this pipelinestage
- The (composite) pipeline stage from whcih to build the pipelinecallback
- The PipelineSink
to attach to the built pipeline
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |