Commit graph

214 commits

Author SHA1 Message Date
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
6db974b6f4 No submaterializing inner source when outer stream already canceled (#23723)
* Do not try to submaterialize inner source when outer stream already cancelled #23656

* Use StreamDetachedException

* Sleep a little

* Updated exception text
2017-11-17 12:24:12 +01:00
Alexander Golubev
a7b1a6675b Add throttle combinator without bucket size in parameters (#23808)
* +str Add throttle combinator without bucket size in parameters

* Add mima filter plus comment formatting

* Reviwed throttle messages across all classes

* move mima filter to 2.4.6

* change to throttleEven, plus grammar fixes

* fix formatting

* changed mima filter according to new API

* fixes accoring to feedback
2017-11-17 12:20:12 +01:00
Richard Imaoka
a50df1c575 Add combinedMat method to Source (#23809)
* Add combinedMat method to Source

* Fix formatting
2017-11-02 10:34:40 +09:00
Johan Andrén
407131cb4e Stream supervision doc clarification #23376 2017-07-26 16:23:46 +02:00
James Roper
c60d20af32 Restart Flow/Source/Sink #19950 2017-07-20 15:02:34 +02:00
Patryk Najda
fe4c376a5e javadsl should use java types #23251 2017-07-03 13:39:00 +01:00
Richard Imaoka
4f10d45376 Correct the backpressure API comment for buffer 2017-06-28 00:07:19 +09:00
Richard Imaoka
c636f3540f Correct the backpressure API comment for throttle (Fixes #22791) (#23225) 2017-06-27 05:32:53 -07:00
Konrad `ktoso` Malawski
b7d7316c1c =str #22917 recoverWithRetries allow 0 and negative values 2017-06-13 11:18:46 +02:00
Hawstein
b3d00afdd1 Move ConstantFun to akka.util, #22813 2017-05-10 18:00:42 +02:00
Gilad Hoch
edee4ba409 +str #22711 adding GroupedWeightedWithin 2017-04-28 15:07:06 +02:00
Björn Antonsson
f8b4fb55ca Remove use of deprecated Scala features #22581 2017-03-27 19:05:54 +03:00
cchantep
5b542d99fa Flatten a Future[Graph[SourceShape[T], M]] as Source[T, Future[M]] #22359 2017-03-14 12:54:01 +01: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
Konrad Malawski
e7e1f74427 =str more specific error type if idle-timeout triggers in tcp 2016-12-14 12:39:24 +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
Konrad Malawski
04ab4ebb9c -str #21423 remove deprecated Stage references (#21919)
* -str #21423 remove deprecated Stage references

* include mima filters for removed classes
2016-12-02 14:23:13 +01:00
Patrik Nordwall
e04444567f Speedup pull request validation
* speedup ActorCreationPerfSpec
* reduce iterations in ConsistencySpec
* tag SupervisorHierarchySpec as LongRunningTest
* various small speedups and tagging in actor-tests
* speedup expectNoMsg in stream-tests
* tag FramingSpec, and reduce iterations
* speedup QueueSourceSpec
* tag some stream-tests
* reduce iterations in persistence.PerformanceSpec
* reduce iterations in some cluster perf tests
* tag RemoteWatcherSpec
* tag InterpreterStressSpec
* remove LongRunning from ClusterConsistentHashingRouterSpec
* sys property to disable multi-jvm tests in test
* actually disable multi-node tests in validatePullRequest
* doc sbt flags in CONTRIBUTING
2016-11-30 14:31:06 +01:00
Johan "Party Cannon" Andrén
267f31149c Lazy source (#21081) 2016-11-25 16:25:26 +01:00
Andrey Kuznetsov
3bd53c8bc2 fix SourceQueue docs inconsistencies #21852 2016-11-22 14:11:09 +01:00
kenji yoshida
aebfda540d =doc fix double 'the' in some docs (#21881) 2016-11-22 02:14:37 +01:00
Patrik Nordwall
aa8c253d14 improve streams actor integration docs, #21698 (#21700)
* mapAsync + ask should be the first choice
* add missing Source.queue
* prefer actorRefWithAck
* move ActorPublisher and ActorSubscriber to the end
  with additional warning
* fix wrong doc of SourceQueue offer
* and add missing java api
2016-10-26 10:24:51 +02:00
Mateus Dubiela Oliveira
c3abde60d5 Add scanAsync to Akka Streams, similar to scan but taking a Future (#21553)
* Add comprehensive tests
* Add documentation

* Damn comma after rebase

* Add documentation for foldAsync and scanAsync

* Rename aggreator and aggreating to current

* Remove out availability check

* Revert removing out and some refactors

* Formatting documentation

* Use after instead of Promise in test

* Use package reference to after and some refactoring
2016-10-17 16:43:11 +02:00
Stefano Bonetti
0f71b841b5 Include parallelism in mapAsyncUnordered docs #21556 2016-10-04 15:18:08 -05:00
Patrik Nordwall
d37fa8ec02 remove Range.Inclusive subclass (toString), #21548
* remove Range.Inclusive subclass (toString), #21548
* update java8-compat dependency for Scala 2.12-RC1
2016-09-27 13:21:49 +02:00
Nafer Sanabria
94d7237d17 +str add zipWithIndex to FlowOps #21290 2016-09-21 08:41:56 +02:00
Johan Andrén
012919fdb3 OrElse stage for fallback when no elements emitted #21024 2016-08-30 13:35:59 +02: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
Kam Kasravi
1d692daaad Fixes #20543 GraphStage subtypes should not be private to akka 2016-07-05 17:12:35 -07:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Tim Harper
b3806cdbfa =doc add important async caveat for Source.actorRef 2016-05-08 21:35:11 -06:00
Robert Budźko
8534adf603 Introduced backpressure timeout (#20131) stage. 2016-05-06 12:57:27 +02:00
Patrik Nordwall
0b0a456e28 Merge pull request #20125 from kelebra/19039-kelebra-cycle
#19039: Added cycle method to Source class.
2016-04-26 16:47:02 +02:00
Oleksii Tkachuk
78e0a534f4 Fixed 19039 for both scaladsl and javadsl
19039: Added cycle method to Source class for both scaladsl and javadsl. Test added.
2016-04-26 07:37:03 -05:00
Rodolphe BELOUIN
936c97051a +str #19782 Transpose a sources sequence (#19795) 2016-04-22 12:04:28 +02:00
Patrik Nordwall
25eaa25318 Merge pull request #20335 from samueltardieu/success-ambiguity
Clarify explanation of Source.actorRef termination in embedded doc
2016-04-20 15:32:45 +02:00
David Knapp
d7fe98e1c4 #20123 Added recoverWithRetries which adds a parameter to limit the (#20137)
number of attempts. Existing recoverWith method behavior remains unchanged.
2016-04-20 15:24:12 +02:00
Samuel Tardieu
34d51dcd00 Clarify explanation of Source.actorRef termination in embedded doc
Make it clear that a Success instance (whose payload will be ignored)
must be sent to complete the source, and not the Success companion
object itself.

Use "a" before instances, and remove "a" before PoisonPill object.

The Java documentation has been aligned to the Scala documentation.
2016-04-19 13:13:23 +02: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
Alexander Golubev
69e6052cbe +str #18620 add Source.blocking() for legacy API integration 2016-03-31 10:29:48 -04:00
Endre Sándor Varga
d815ed1b5e 19862 Token bucket reimplemented 2016-03-31 11:36:03 +02:00