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 org.apache.pekko.stream.KillSwitch
To use the stage from Scala see the factory methods in org.apache.pekko.stream.connectors.file.scaladsl.FileTailSource
- Annotations
- @InternalApi()
- Source
- FileTailSource.java
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileTailSource
- GraphStage
- GraphStageWithMaterializedValue
- Graph
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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(classOf[java.lang.CloneNotSupportedException]) @native()
- def createLogic(inheritedAttributes: Attributes): GraphStageLogic
- Definition Classes
- FileTailSource → GraphStage
- Annotations
- @Override()
- final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
- Definition Classes
- GraphStage → GraphStageWithMaterializedValue
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAttributes: Attributes
- Definition Classes
- Graph
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def shape(): SourceShape[ByteString]
- Definition Classes
- FileTailSource → Graph
- Annotations
- @Override()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def withAttributes(attr: Attributes): Graph[SourceShape[ByteString], NotUsed]
- Definition Classes
- GraphStageWithMaterializedValue → Graph