final class FileTailSource extends GraphStage[SourceShape[ByteString]]
INTERNAL API
Read the entire contents of a file, and then when the end is reached, keep reading newly
appended data. Like the unix command tail -f
.
Aborting the stage can be done by combining with a akka.stream.KillSwitch
To use the stage from Scala see the factory methods in akka.stream.alpakka.file.scaladsl.FileTailSource
- Source
- FileTailSource.java
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileTailSource
- GraphStage
- GraphStageWithMaterializedValue
- Graph
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new FileTailSource(path: Path, maxChunkSize: Int, startingPosition: Long, pollingInterval: FiniteDuration)
Type Members
-
type
Shape = SourceShape[ByteString]
- Definition Classes
- Graph
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addAttributes(attr: Attributes): Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- Graph
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
async(dispatcher: String, inputBufferSize: Int): Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- Graph
-
def
async(dispatcher: String): Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- Graph
-
def
async: Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- Graph
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
createLogic(inheritedAttributes: Attributes): GraphStageLogic
- Definition Classes
- FileTailSource → GraphStage
-
final
def
createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
- Definition Classes
- GraphStage → GraphStageWithMaterializedValue
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
initialAttributes: Attributes
- Attributes
- protected
- Definition Classes
- GraphStageWithMaterializedValue
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
named(name: String): Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- Graph
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
shape(): SourceShape[ByteString]
- Definition Classes
- FileTailSource → Graph
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
withAttributes(attr: Attributes): Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- GraphStageWithMaterializedValue → Graph