class FileBufferedFlow extends GraphStageWithMaterializedValue[FlowShape[ByteString, ByteString], Future[IOResult]]
Creates flow with non blocking pulling from upstream regardless of downstream demand. Pulled data are stored in buffer of
bufferSize
. If buffer is full and there is no downstream demand data are stored in file. If file size exceeds
maxFileSize
InsufficientStorageException
is thrown. Flow materializes to
Future[IOResult]
which completes when upstream is finished.
Future[IOResult] }}}
InsufficientStorageException }}} Flow materializes to
Future[IOResult]
which completes when upstream is finished.
Future[IOResult] }}}
maxFileSize }}} Flow materializes to
Future[IOResult]
which completes when upstream is finished.
Future[IOResult] }}}
bufferSize }}} data are stored in file. If file size exceeds
maxFileSize
InsufficientStorageException
is thrown. Flow materializes to
Future[IOResult]
which completes when upstream is finished.
Future[IOResult] }}}
InsufficientStorageException }}} Flow materializes to
Future[IOResult]
which completes when upstream is finished.
Future[IOResult] }}}
maxFileSize }}} Flow materializes to
Future[IOResult]
which completes when upstream is finished.
Future[IOResult] }}}
- Source
- BufferStreams.scala
- Alphabetic
- By Inheritance
- FileBufferedFlow
- GraphStageWithMaterializedValue
- Graph
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Shape = FlowShape[ByteString, 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[FlowShape[ByteString, ByteString], Future[IOResult]]
- Definition Classes
- Graph
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
async(dispatcher: String, inputBufferSize: Int): Graph[FlowShape[ByteString, ByteString], Future[IOResult]]
- Definition Classes
- Graph
-
def
async(dispatcher: String): Graph[FlowShape[ByteString, ByteString], Future[IOResult]]
- Definition Classes
- Graph
-
def
async: Graph[FlowShape[ByteString, ByteString], Future[IOResult]]
- Definition Classes
- Graph
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
createLogicAndMaterializedValue(attrs: Attributes): (GraphStageLogic with StageLogging, Future[IOResult])
- Definition Classes
- FileBufferedFlow → GraphStageWithMaterializedValue
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
getAttributes: Attributes
- Definition Classes
- Graph
-
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[FlowShape[ByteString, ByteString], Future[IOResult]]
- 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()
-
val
shape: FlowShape[ByteString, ByteString]
- Definition Classes
- FileBufferedFlow → 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[FlowShape[ByteString, ByteString], Future[IOResult]]
- Definition Classes
- GraphStageWithMaterializedValue → Graph