+str - Renames SynchronousPublisherFromIterable to SynchronousIterablePublisher
Introduces an Actor-based IterablePublisher
Gives names to most of the publishers
This commit is contained in:
parent
db4e5c4a29
commit
14afce31ef
24 changed files with 688 additions and 317 deletions
|
|
@ -58,6 +58,7 @@ object FlowMaterializer {
|
|||
|
||||
new ActorBasedFlowMaterializer(
|
||||
materializerSettings,
|
||||
system.dispatchers,
|
||||
context.actorOf(StreamSupervisor.props(materializerSettings).withDispatcher(materializerSettings.dispatcher)),
|
||||
FlowNameCounter(system).counter,
|
||||
namePrefix,
|
||||
|
|
@ -223,7 +224,7 @@ final case class MaterializerSettings(
|
|||
maxFanOutBufferSize: Int,
|
||||
dispatcher: String,
|
||||
subscriptionTimeoutSettings: StreamSubscriptionTimeoutSettings,
|
||||
fileIODispatcher: String) {
|
||||
fileIODispatcher: String) { // FIXME Why does this exist?!
|
||||
|
||||
require(initialInputBufferSize > 0, "initialInputBufferSize must be > 0")
|
||||
|
||||
|
|
@ -246,7 +247,7 @@ final case class MaterializerSettings(
|
|||
def withDispatcher(dispatcher: String): MaterializerSettings =
|
||||
copy(dispatcher = dispatcher)
|
||||
|
||||
private def isPowerOfTwo(n: Integer): Boolean = (n & (n - 1)) == 0
|
||||
private def isPowerOfTwo(n: Integer): Boolean = (n & (n - 1)) == 0 // FIXME this considers 0 a power of 2
|
||||
}
|
||||
|
||||
object StreamSubscriptionTimeoutSettings {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue