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>>
BLOCKING I/O READ
-
-
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)
BLOCKING I/O READOutlet<ByteString>
out()
SourceShape<ByteString>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.java.lang.String
toString()
BLOCKING I/O READ-
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.- Returns:
- (undocumented)
-
createLogicAndMaterializedValue
public scala.Tuple2<GraphStageLogic,scala.concurrent.Future<IOResult>> createLogicAndMaterializedValue(Attributes inheritedAttributes)
BLOCKING I/O READ- Specified by:
createLogicAndMaterializedValue
in classGraphStageWithMaterializedValue<SourceShape<ByteString>,scala.concurrent.Future<IOResult>>
-
toString
public java.lang.String toString()
BLOCKING I/O READ- Overrides:
toString
in classjava.lang.Object
-
-