Package akka.stream.impl.io
Class FileSource
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<SourceShape<ByteString>,scala.concurrent.Future<IOResult>>
-
- akka.stream.impl.io.FileSource
-
- All Implemented Interfaces:
Graph<SourceShape<ByteString>,scala.concurrent.Future<IOResult>>
public final class FileSource extends GraphStageWithMaterializedValue<SourceShape<ByteString>,scala.concurrent.Future<IOResult>>
INTERNAL API Creates simple asynchronous Source backed by the given file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M>
-
-
Constructor Summary
Constructors Constructor Description FileSource(java.nio.file.Path path, int chunkSize, long startPosition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
completionHandler()
scala.Tuple2<GraphStageLogic,scala.concurrent.Future<IOResult>>
createLogicAndMaterializedValue(Attributes inheritedAttributes)
Outlet<ByteString>
out()
SourceShape<ByteString>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.java.lang.String
toString()
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, initialAttributes, traversalBuilder, withAttributes
-
-
-
-
Method Detail
-
completionHandler
public static java.lang.Object completionHandler()
-
out
public Outlet<ByteString> out()
-
shape
public SourceShape<ByteString> shape()
Description copied from interface:Graph
The shape of a graph is all that is externally visible: its inlets and outlets.
-
createLogicAndMaterializedValue
public scala.Tuple2<GraphStageLogic,scala.concurrent.Future<IOResult>> createLogicAndMaterializedValue(Attributes inheritedAttributes)
- Specified by:
createLogicAndMaterializedValue
in classGraphStageWithMaterializedValue<SourceShape<ByteString>,scala.concurrent.Future<IOResult>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-