Commit graph

84 commits

Author SHA1 Message Date
Konrad `ktoso` Malawski
171bb6c231 WIP initial typed streams adapters
Adapt ref source and sink for typed

 * do not use the typed teskit temporarily
2018-01-31 15:10:46 +01:00
Konrad Malawski
6264f8ea70 +str #24229 back to Future[] API for stream refs
nitpicks
2018-01-23 02:27:10 +09:00
Konrad Malawski
c5a2785c7c +str #24229 implement flattening of mat values, may block; SHOULD BE INTERNAL API
add java documentation

images
2018-01-23 02:27:10 +09:00
Konrad `ktoso` Malawski
7c75abbf7e +str #24229 move SinkRef / SourceRef to akka.stream
+str #24229 remove protobuf changes, which do not need to be made in this PR

docs

moved things

config object

subscription timeout confifmed working, also, attributes

document attributes for sub timeout

tests for the source also failing when it should

additional demand test

implemented protection from materializing "in cycles"; would be nice in
types but that breaks the niceness of use of the types
SinkRef/SourceRef...

cleanup

no idle timeout built in, can use the Timeout stages

more docs

simplest change to prevent exposing SinkRef => SourceRef => SinkRef cycle

Things to decide:
 * is it ok to require using `getSource` / `getSink` as Java API, is there better naming?
 * where should the constructors go? I'd say just in regular javadsl/scaladsl `Source`/ `Sink` objects

move constructors to {javadsl,scaladsl}.{Source,Sink} companion objects

Remove now useless "canMaterialize" field

Separate stage (implementation) from ref (wrapped actor ref) to make it clearer what is serialized

Clarify that partner refs are not optional in on-the-wire interfaces

minor cleanup in SourceRefStage

Renamed the stages but questionable if that really helps ;)

cleanups, better docs

cleanup, fix docs compilation

fix mima

got rid of Futures in the materialized values of stream refs
2018-01-23 02:27:10 +09:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Johan Andrén
1751292580
Attributes on fromGraph(stage) should be treated as on stage #22911, #22523 2017-11-23 10:26:00 +01:00
Johan Andrén
407131cb4e Stream supervision doc clarification #23376 2017-07-26 16:23:46 +02:00
Endre Sándor Varga
ba63c7af8d New materializer and layout 2017-03-01 16:18:55 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Patrik Nordwall
c05bd51b68 format the code 2016-12-09 14:08:13 +01:00
Konrad `ktoso` Malawski
2ea8cd7410 =str deprecate ActorPublisher/Subscriber, use GraphStage (#21952)
* =str deprecate ActorPublisher/Subscriber, use GraphStage

* =str deprecate Source.actorPublisher / Sink.actorSubscriber

* =str added deprecation note of ActorPublisher,Subscriber
2016-12-08 17:22:01 +01:00
Cédric Chantepie
efc87af58a FoldAsync op for Flow #18603 2016-08-24 21:02:32 +02:00
Nafer Sanabria
2f85cf0fb8 =str fix up Scaladocs for Source & Sink 2016-08-11 14:37:54 +02:00
Patrik Nordwall
b4cd30cf94 Merge pull request #20757 from kkasravi/issue_20543_kkasravi
Fixes #20543 GraphStage subtypes should not be private to akka
2016-07-08 10:06:27 +02:00
Alexander Golubev
e0562abba9 +str 20129 add lazySink (#20579) 2016-07-07 13:01:28 +02:00
Kam Kasravi
1d692daaad Fixes #20543 GraphStage subtypes should not be private to akka 2016-07-05 17:12:35 -07:00
Endre Sándor Varga
093d82ce00 +str #19443 add support or Java Stream 2016-04-29 23:31:56 -04:00
Konrad Malawski
b9ab232cac str #20262 reduce should fail explicitly on empty stream (#20267)
* str #20262 reduce should fail explicitly on empty stream

* str #20262 document reduce behaviour on empty stream
2016-04-11 15:36:10 +02:00
Tal Pressman
26c25c89ed +str #19390 Add 'monitor' flow combinator and stage 2016-04-01 08:06:37 +02:00
Roland Kuhn
b255a19374 simplify materialized value computation tree, fixes #20015
- also fixes materialized value sources for graphs that import zero or
  one graphs, with and without Fusing
2016-03-16 17:05:46 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Johan Andrén
4e49d75ad8 !str #19732 Concise and consistent way to mark async boundaries 2016-02-11 18:20:23 +01:00
Alois Cochard
6c69fba61e 19452: Contramap and fromFunction 2016-02-11 15:32:48 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Roland Kuhn
4c72495581 #19440 replace Scala Future usage with CompletionStage in javadsl
This entails:

  * adding akka.pattern.PatternCS.* to enable ask etc. with
    CompletionStage
  * changing RequestContext to offer an ExecutionContextExecutor for the
    CompletionStage.*Async combinators
  * splitting up akka.stream.Queue for JavaDSL consistency
2016-01-23 18:00:11 +01:00
Alexander Golubev
a2ab7f29e1 +str #19020 reduce combinator 2016-01-21 22:16:37 -05:00
Roland Kuhn
9427052fd0 #19522 make javadsl.Sink.asPublisher nicer 2016-01-21 16:57:21 +01:00
Roland Kuhn
d4b1f07ec0 #19269 doc: Sink.seq is limited to Int.MaxValue 2016-01-20 11:50:43 +01:00
Endre Sándor Varga
60497f6561 also fix FlowInterleaveSpec
Also-by: Johan Andrén <johan@markatta.com>
Also-by: Roland Kuhn <rk@rkuhn.info>
Also-by: Martynas Mickevičius <mmartynas@gmail.com>
2016-01-20 10:01:58 +02:00
Endre Sándor Varga
57c1dfde8a 19441: Use Optional instead of Option in http core javadsl 2016-01-15 16:20:46 +01:00
Endre Sándor Varga
7a39063f2e #19441: Use Optional instead of Option in javadsl 2016-01-15 14:38:05 +01:00
Konrad Malawski
984740198e Merge pull request #19268 from akka/wip-2.0-fixes-RK
Wip 2.0 fixes rk
2015-12-22 23:43:04 +01:00
Roland Kuhn
8a5a420108 #19261 override and test addAttributes compilation 2015-12-22 20:56:02 +01:00
Konrad Malawski
3975ac3281 =str fix typo in scaladoc 2015-12-22 19:49:09 +01:00
lolski
aadaf15b89 #18021 Sink.seq and FlowOps.limit and .limitWeighted 2015-12-20 11:00:06 +01:00
Roland Kuhn
dcfa56e547 Merge remote-tracking branch 'pr/19097' into release-2.3-dev 2015-12-18 12:22:02 +01:00
Johan Andrén
09a79f45e4 !str #19129 New homes for file and java.io stream factories 2015-12-17 14:41:02 +01:00
Martynas Mickevičius
e6e476d82a =str #19128 #19127 rename Source/Sink factory apply overloads 2015-12-17 11:48:30 +02:00
Alexander Golubev
64387583ad =str #18821 fix Sink.queue termination 2015-12-16 17:53:36 -05:00
Alexander Golubev
87b94202a3 +str #17967 add Sink.actorRefWithAck 2015-12-11 23:09:14 -05:00
Viktor Klang (√)
fa683e1842 Merge pull request #18951 from akka/wip-add-sink-last-√
+str - Adds Sink.last and Sink.lastOption to mirror Sink.head and Sin…
2015-11-18 22:27:50 +01:00
Viktor Klang
94fe1fb26d +str - Adds Sink.last and Sink.lastOption to mirror Sink.head and Sink.headOption
* Renames BlackholeSubscriber to SinkholeSunbscriber
* Makes SinkholeSubscriber request Long.MaxValue
* SinkholeSink seems like the best name ever
2015-11-18 21:48:00 +01:00
Viktor Klang
8780ba28a4 !str - Moving the InputStream and OutputStream utilities into Source and Sink 2015-11-18 09:13:57 +01:00
Konrad Malawski
cb8d3c4609 Merge pull request #18934 from akka/wip-18916-file-io-√
!str - 18916 - Source.file and Sink.file
2015-11-17 10:33:50 +01:00
Viktor Klang
20c996fe41 !str - 18916 - Source.file and Sink.file
* Removes `Synchronous` from the names and descriptions of File I/O as it leaks impl details
* Removes the factries for FileSource and FileSink and puts them in Source and Sink respectively
2015-11-17 09:50:10 +01:00
Konrad Malawski
8650d0c473 +str #18906 add Sink.headOption 2015-11-14 16:36:09 +01:00
Viktor Klang
6cfa4df800 !str - Switches Sink.publisher to use a boolean to indicate fanout rather than a number of allowed subscribers 2015-11-04 12:29:23 +01:00
Viktor Klang
f839a1f85d !str - 18808 - Removes Sink.fanoutPublisher and makes Sink.publisher specify number of subscribers
Sink.publisher now takes a max number of Subscribers and
the elasticity between concurrent Subscribers.
2015-11-04 12:29:07 +01:00
Viktor Klang
d539468ac9 Sprinkling finals on javadsl classes 2015-11-01 21:07:20 +01:00
Viktor Klang
f29d7affbd !str #18692 javadsl.FlowGraph.Builder.add()
* also make factories more consistent by only offering
  FlowGraph.create()
* also remove secondary (edge-based) FlowGraph.Builder DSL
* also improve naming for conversions from Graph to
  Source/Flow/BidiFlow/Sink
2015-10-22 19:10:00 +02:00