Commit graph

591 commits

Author SHA1 Message Date
Patrik Nordwall
946faedd95 !str #16521 Add ActorRefSink
* also rename the factory for ActorSubscriber props Sink,
  from apply to actorSubscriber
2015-04-10 12:58:52 +02:00
Roland Kuhn
8f47b6dfcc Merge pull request #17105 from akka/wip-async-stage-∂π
add async stage
2015-04-10 10:52:01 +02:00
Roland Kuhn
4c623fade7 !str #17090 add AsyncStage 2015-04-10 09:00:36 +02:00
Patrik Nordwall
666bfade1e !str #16993 Separate scaladsl/javadsl for FlattenStategy
`abstract class FlattenStrategy` was used in both javadsl and scaladsl, but the concrete concat
for the javadsl was in javadsl.FlattenStrategy and the concrete concat for the scaladsl is in
stream.FlattenStrategy.

Now there are separate FlattenStategy in scaladsl and javadsl packages and conversion
as we have in other places.

* replace JavaConverters with explicit methods

* remove asJava/asScala for FlattenStrategy
2015-04-10 08:05:24 +02:00
Konrad Malawski
4e796a5eec +str #17108 adds arity-numbers to javadsl for nicer compile errors
Resolves #17108
2015-04-07 16:11:48 +02:00
Endre Sándor Varga
a7af773e2c !str #16168: Expose materialized value in the graph as a "source" 2015-04-07 12:51:18 +02:00
Endre Sándor Varga
5559c34ca9 =str #16924: Fix FanoutProcessor to not overwrite last termination cause
Also fix FlowSpec to expect onError instead of onComplete for late subscribers
2015-03-27 14:53:04 +01:00
Patrik Nordwall
b6fc0d150b Merge pull request #17061 from bantonsson/wip-16938-GraphConcatSpec-ban
=str #16938 Enable more tests in GraphConcatSpec
2015-03-27 10:22:11 +01:00
Björn Antonsson
164869c135 =str #16938 Enable more tests in GraphConcatSpec 2015-03-24 14:41:17 +01:00
Roland Kuhn
157629f8af !str #16416,#16994 BidiFlow DSL and Flow.join Mat
- add BidiFlow, with atop and join combinators
- add Flow.join(BidiFlow)
- correct Flow.join’s default materialized value selection to Keep.left
2015-03-24 11:10:14 +01:00
Roland Kuhn
a531058c04 !str #16983 add outputBurstLimit
This limits the number of elements that the ActorInterpreter will allow
the OneBoundedInterpreter to emit during one message processing.
2015-03-08 17:22:44 +01:00
Patrik Nordwall
9b3d19f451 =str #16309 DRY FlowIteratorSpec, FlowIterableSpec, SynchronousIterableSpec 2015-03-06 16:06:19 +01:00
Patrik Nordwall
f62b161a10 Merge pull request #17009 from akka/wip-16866-fail-future-patriknw
=str #16866 fail fold and foreach future when function throws
2015-03-06 15:58:22 +01:00
Patrik Nordwall
3dc4e6d077 !str #16992 Rework Source and Sink name parameter
* Remove name parameter (no overloads), naming is performed using `.withAttributes` or the new
  convenience `.named`. Those adds the OperationAttribute.Name and also change the name of the
  shape Inlet and Outlet.

* Remove Source/Sink parameter list for 0 parameter methods,
  this allows usage of `Sink.head` instead of `Sink.head()`
2015-03-06 09:24:00 +01:00
Patrik Nordwall
395ef00938 =str #16866 fail fold and foreach future when function throws 2015-03-05 18:26:17 +01:00
Patrik Nordwall
53e3dcad06 Merge pull request #17006 from akka/wip-16982-resume-more-than-once-patriknw
=str #16982 Fix supervision bug when more than one resume/restart
2015-03-05 18:00:53 +01:00
Patrik Nordwall
23c533fdd5 =str #16751 Update to reactive-streams 1.0-RC3
Changed rules:
* 1.9 Always onSubscribe prior to any other signals
* 1.9 NullPointerException if subscriber is null
* 3.17 Long overflow, effectively unbounded instead of onError

Fixed some more things:
* fixed some FIXME
* Long drop and take
* memory leaks in tck tests, use BeforeClass to create ActorSystem
  use AfterClass to shutdown ActorSystem
* more tck tests
* don't emit OnComplete when substream is cancelled
* work around for memory leak in PrefixAndTail
2015-03-05 17:58:24 +01:00
Patrik Nordwall
ac2a890898 =str correct InterpreterSupervisionSpec 2015-03-05 15:16:37 +01:00
Patrik Nordwall
75087a19f2 =str #16982 Fix supervision bug when more than one resume/restart 2015-03-05 14:45:34 +01:00
Endre Sándor Varga
38df267555 =str #16959: MapAsync and MapAsyncUnordered should not ignore cancel
added TCK verification as well
2015-02-27 15:36:17 +01:00
Roland Kuhn
6416dc2f25 tests compile apart from flexi things 2015-02-27 12:10:10 +01:00
Roland Kuhn
a4f4cb298a increase timeouts in SourceSpec 2015-02-26 17:57:14 +01:00
Roland Kuhn
743cd98bf4 fix two wrong/flaky tests
- ordering is not preserved by shufflers in GraphOpsIntegrationSpec
- larger tolerance is needed in GraphBalanceSpec since balancing does
  not keep track of previous imbalances
- also add Source.repeat(elem)
2015-02-26 14:22:26 +01:00
Endre Sándor Varga
8d77fa8b29 !str #16902: Unify stream internal representation
also =str #16912: Fix StreamTcpSpec flakiness
2015-02-26 10:06:56 +01:00
Patrik Nordwall
693dcbefcc +str #15750 Prototype of stream supervision
* add supervion for stages and built in ops run by interpreter
* add supervision for mapAsync and mapAsyncUnordered
* add supervision to groupBy and splitWhen
* reference doc for scala and java
2015-02-20 15:44:01 +01:00
Endre Sándor Varga
bec3be8155 =str #16553: Fix TCP stream shutdown scenarios 2015-02-06 11:56:08 +01:00
Endre Sándor Varga
972636f500 !str #16425: Fix bind failure tests, unbind should not fail on bind error 2015-02-06 10:18:18 +01:00
drewhk
f58684397c Merge pull request #16718 from drewhk/wip-16231-correct-jumpback-table-drewhk
=str #16231: Protect jumpback table from corruption
2015-02-06 10:04:00 +01:00
Patrik Nordwall
b442c4d9e6 Merge pull request #16756 from akka/wip-16448-err-vs-fail-patriknw
!str #16448 Change error to failure
2015-02-03 13:45:28 +01:00
Patrik Nordwall
2740d67c61 !str #16565 Make Flexi* limitations explicit
* remove isDemandAvailable
* hide emit from CompletionHandler context
* throw if more than one emit in response to an input
* had to remove the OrderedMerge test/sample because emitting
  from CompletionHandler is currently not supported
* FlexiRoute and FlexiMerge might become more capable later, see issue 16753
2015-02-03 13:42:48 +01:00
Patrik Nordwall
01646d10ff !str #16448 Change error to failure
* one API change OverflowStrategy.error -> OverflowStrategy.fail
* error is still kept in the internals where we are at the reactive
  streams level
2015-01-30 10:30:56 +01:00
Konrad Malawski
20e4d5ab25 Merge pull request #16750 from ktoso/wip-never-source-ktoso
+str #16547 "lazyEmpty" source, allowing external completion
2015-01-29 15:37:59 +01:00
Konrad Malawski
85c286ac58 +str #16547 "lazyEmpty" source, which allows external triggering of completion 2015-01-29 14:28:08 +01:00
Konrad Malawski
fde7119360 =str #16687 rename internal GraphFlow to GraphBackedFlow
Same rename made for GraphSource and GraphSink for consistency
2015-01-29 12:19:02 +01:00
Patrik Nordwall
580ba8c484 Merge pull request #16730 from akka/wip-15851-ActorBasedFlowMaterializer-patriknw
!str #15851 Rename FlowMaterializer and settings
2015-01-29 10:30:08 +01:00
Patrik Nordwall
de5bff0444 Merge pull request #16727 from akka/wip-16577-FlexiMerge-exceptions-patriknw
!str #6577 Align API of Flexi with Stage
2015-01-29 10:26:53 +01:00
Patrik Nordwall
8505e4935a !str #6577 Align API of Flexi with Stage
* error -> fail
* complete -> finish
* onComplete - onUpstreamFinish
* onError - onUpstreamFailure
* onCancel - onDownstreamFinish
2015-01-29 10:25:52 +01:00
Konrad Malawski
9c9984aaf9 Merge pull request #16721 from ktoso/runOps-ktoso
!str #16563 terminal operations start with run*; runFold runForeach
2015-01-28 10:24:38 +01:00
Patrik Nordwall
cd9d503b03 !str #15851 Rename FlowMaterializer and settings
* FlowMaterializer is now the actor independent interface
* ActorFlowMaterializer is the actor based interface
* MaterializerSettings renamed to ActorFlowMaterializerSettings
* impl.ActorBasedFlowMaterializer renamed to impl.ActorFlowMaterializerImpl
* Optimizations included in ActorFlowMaterializerSettings
* Note that http is using FlowMaterializer in api, but I suspect that it
  will currently only run with a ActorFlowMaterializer
2015-01-27 19:22:22 +01:00
Patrik Nordwall
9826290fbe Merge pull request #16719 from akka/wip-16492-tick-patriknw
!str #16492 Remove closure in TickSource to make it shareable
2015-01-27 11:46:20 +01:00
Patrik Nordwall
a3e2aa7221 Merge pull request #16708 from akka/wip-16577-FlexiMerge-exceptions-patriknw
=str #16577 emit user exception from Flexi* completion handler
2015-01-26 15:57:32 +01:00
Konrad Malawski
39038597b2 !str #16563 terminal operations start with run*; runFold runForeach 2015-01-26 15:39:36 +01:00
Patrik Nordwall
631b4ca5ac !str #16492 Remove closure in TickSource to make it shareable 2015-01-26 14:16:59 +01:00
Patrik Nordwall
af4555ce1f Merge pull request #16666 from akka/wip-16652-stream-docs-java-3-patriknw
=str #16652 Convert 'Working with Graphs' to java
2015-01-26 13:32:54 +01:00
Patrik Nordwall
ed832ea7a9 =str #16652 Convert 'Working with Graphs' to java
* fixed missing or wrong javadsl
2015-01-26 13:31:49 +01:00
Endre Sándor Varga
5202d59dda =str #16231: Protect jumpback table from corruption 2015-01-26 10:31:57 +01:00
Konrad Malawski
82195d63a3 Merge pull request #16702 from ktoso/wip-missing-graphflow-connection-ktoso
=str #16609 add missing handling of FlowGraphs when connecting
2015-01-24 00:11:25 +01:00
Patrik Nordwall
1b73e09e2e =str #16577 emit user exception from Flexi* completion handler 2015-01-23 10:54:05 +01:00
Konrad Malawski
08f77bcad0 =str #16609 add missing handling of FlowGraphs when connecting 2015-01-22 12:52:55 +01:00
Konrad Malawski
b23d459eeb =str #16658 tickSource in JavaDSL must expose keyed source / cancellable 2015-01-22 11:44:52 +01:00