Commit graph

64 commits

Author SHA1 Message Date
Endre Sándor Varga
c7a974dd1e Rename RunnableFlow to RunnableGraph 2015-06-23 18:49:53 +02:00
Endre Sándor Varga
7879a5521b Rename FlowMaterializer to Materializer 2015-06-23 18:47:28 +02:00
Endre Sándor Varga
dc7269e620 Rename OperationAttributes to Attributes 2015-06-23 18:45:04 +02:00
Martynas Mickevičius
3db793b665 =str #16935 revivce dsl consistency spec 2015-06-23 16:24:06 +03:00
Alexander Golubev
6f9438a2b0 +str #17226 add dropWhile and takeWhile 2015-06-16 17:55:50 -04:00
Viktor Klang
3bf1c14b3a =str - fixing TODO about scaladsl & javadsl Source/Sink/Flow/BidiFlow.wrap not having to needlessly re-wrap 2015-06-07 11:34:53 +02:00
Konrad Malawski
5e8ff792a0 +str #16885 add splitAfter
Implementation is shared with splitWhen - see Split / SplitWhere
Allows for easy addition of splitWhen(x => Decision) if we'd like to
Resolves #16885
2015-05-28 17:32:16 +02:00
Endre Sándor Varga
7ad4fdc3ce !str #17123: Make materialized value handling method names consistent 2015-05-05 12:42:41 +02:00
Roland Kuhn
55e1d71eea !str #17327 use curried methods for mapAsync 2015-04-28 17:40:45 +02:00
Konrad Malawski
ed51c860e2 Merge pull request #17162 from ktoso/wip-logging-streams-ktoso
Logging with log() stage for streams
2015-04-24 15:39:57 +02:00
Konrad Malawski
f2b757df51 +str #17162 add log() stage for simple logging in Flows
+ with javadsl
+ allows configuring log levels
+ allows turning off logging of certain actions completely
+ cookbook adjusted to show this instead of manual PushStage
- PENDING: preStart based impl will be faster, coming soon
2015-04-24 15:37:39 +02:00
Endre Sándor Varga
d73f78dcbf +str #17254: Accept graphs instead of Flow/Source/Sink etc. 2015-04-24 13:14:00 +02:00
Roland Kuhn
354a8e3a41 !str #17277 remove akka.stream.javadsl.japi.WithVariance
sadly we forgot to also move the boilerplate-generated FunctionN and
ProcedureN into akka-actor, so they are still in
akka.stream.javadsl.japi.
2015-04-24 11:05:11 +02:00
Konrad Malawski
cebd9bf1ae +str #15588,#17229 Java 6 Synchronous File Sink / Source
These are synchronous implementations, because we need to be Java 6
  compatible while developing on 2.3.x. However asynchronous
  implementations using AsynchronousFileChannel will come soon for JDK7
  users.

+ ActorPublisher/Subscriber now manage stopping of the actor
+ added documentation on configuring dispatcher for File IO
+ properly handle if source file does not exist
+ file sink / source come with default io dispatcher
> verified no actors are leaking
> exceptions are caught and onErrored properly
+ moved files to akka.stream.io
+ Added OutputStreamSink and InputStreamSource
2015-04-23 18:15:10 +02:00
Patrik Nordwall
33919f683c Merge pull request #17228 from akka/wip-16699-fixmes-patriknw
=str #16699 fix some FIXMEs
2015-04-23 14:37:20 +02:00
Patrik Nordwall
c63b9c801a =str #16699 fix some FIXMEs 2015-04-23 14:36:53 +02:00
Roland Kuhn
d6f5b4ad2d Merge pull request #17210 from ktoso/wip-concat-docs-ktoso
Document mapConcat's Seq should not contain nulls
2015-04-20 21:22:32 +02:00
Patrik Nordwall
c6404d3e44 !str #17189 Add withAttributes and named to Graph
* Remove optional attributes parameter in favor of withAttributes
* Overload explosion when trying to add attributes to ZipWith.
* Aligned with Flow and Source.
2015-04-17 11:31:32 +02:00
Patrik Nordwall
00033313e0 !str #16951 Unify scaladsl and javadsl OperationAttributes
* Move actor specific attributes to ActorOperationAttributes
2015-04-16 14:16:01 +02:00
Konrad Malawski
38638e42e4 =str #16608 adds scaladoc about null in col returned from mapConcat 2015-04-15 17:51:18 +02:00
Patrik Nordwall
b69988c190 !str #16937 Remove section, in favor of via and separate flow 2015-04-10 17:34:29 +02:00
Mathias
85c0571620 !str #17039 change default materialization placeholder type from Unit to Any 2015-04-10 15:10:42 +02:00
Patrik Nordwall
f4ed62b84c !str #16520 Add ActorRefSource
* and rename the factory for ActorPublisherSource,
  from Source.apply to Source.actorPublisher

* including internal buffer, with OverflowStrategy

* support to complete/fail stream
2015-04-10 13:53:15 +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
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
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
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
Mathias
abea2c88ef =htc #16934 s/ActorFlowMaterializer/FlowMaterializer where possible, smaller cleanups 2015-03-02 13:52:09 +01:00
Endre Sándor Varga
75a67b13ca +doc: Added materialized value handling section for Java 2015-02-27 15:23:41 +01:00
Roland Kuhn
6416dc2f25 tests compile apart from flexi things 2015-02-27 12:10:10 +01:00
Roland Kuhn
e870c7cbd2 many compile fixes and FlowMaterializer
The DSLs MUST NOT rely upon ActorFlowMaterializer, otherwise we cannot
add other materializers later.
2015-02-26 22:42:34 +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
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
85c286ac58 +str #16547 "lazyEmpty" source, which allows external triggering of completion 2015-01-29 14:28:08 +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
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
ed832ea7a9 =str #16652 Convert 'Working with Graphs' to java
* fixed missing or wrong javadsl
2015-01-26 13:31:49 +01:00
Konrad Malawski
b23d459eeb =str #16658 tickSource in JavaDSL must expose keyed source / cancellable 2015-01-22 11:44:52 +01:00
Patrik Nordwall
fdbd19e302 =str #16549 doc: Integration with External Services 2014-12-19 13:05:01 +01:00
Patrik Nordwall
5bf2ab43bd !str #16557 Rename Source.singleton to Source.single 2014-12-16 17:02:27 +01:00
Björn Antonsson
91d29cbb3a =str #16259 Added more red-face testing of the stream Java DSL 2014-12-03 10:33:21 +01:00
Björn Antonsson
3e14cd05a9 =str #16380 Cleaned up Source/Sink/Key overlap 2014-12-02 16:38:14 +01:00
Martynas Mickevicius
64feb041be =str #15152 operation transformations 2014-12-01 20:07:55 +02:00
Björn Antonsson
672d4ed091 +str,htc #16071, #16072 New Stream Tcp and Http API
* StreamTcp and Http extensions now return Flows and Sources that can be materialized later
* Flow can now be completed with another flow to be turned into a runnable flow
2014-11-28 10:41:57 +01:00
Konrad 'ktoso' Malawski
e75c2305e7 -str #16393 removes timerTransform mentions from scaladocs 2014-11-27 11:36:09 +01:00
Konrad 'ktoso' Malawski
c2242ce84e -str #16393 removes timerTransform from public API 2014-11-26 12:28:43 +01:00