Commit graph

275 commits

Author SHA1 Message Date
Johan Andrén
b68d67008a
Deprecate actor materializer (#27538) 2019-09-05 16:08:37 +02:00
Johan Andrén
45c826a218
System wide materializer (#27491)
Introduces a materializer started through an extension and then an implicit
conversion for Scala turning an implicitly available ActorSystem into a
materializer. The Java APIs has been ammended with run-methods accepting
an ActorSystem.
2019-08-23 18:19:27 +02:00
Christopher Batey
89e269d5d8 Remove catchall silents from prod code (#27432)
* WIP

* Remove catch all silent annocations from prod code
2019-07-30 11:12:23 +02:00
Christopher Batey
09838a71e5 Remove source/sink fromPublisher/fromSubscriber (#27288)
* Remove source/sink fromPublisher/fromSubscriber

Refs #26187

* mima
2019-07-25 13:16:30 +02:00
Arnout Engelen
d3170a56ea Add fluent API for 2-stream merging (#27020)
* fluent API for 2-stream mergeLatest, mergePreferred and mergePrioritized
* Add javadocs and 'eagerClose' paramter to 'mergeLatest'
* fluent API's for
2019-07-16 10:54:18 +02:00
eyalfa
14c02302bc Akka 27103/streams zip all #27103 2019-07-05 16:40:06 +02:00
Patrik Nordwall
d88db078ad
Merge pull request #27097 from chbatey/flow-context-api-may-change
Remove API may change for flow with context
2019-07-04 10:58:25 +02:00
Christopher Batey
6d7ad47571 Clarify what to do instead of sending a PoisonPill for ActorRef source (#27090)
* Clarify what to do instead of sending poison pill to actor ref source

* Fix typos in scala/java doc for Source.actorRef
2019-06-07 09:46:34 +02:00
Christopher Batey
781a9344db Remove API may change for flow with context
Refs #26897
2019-06-06 10:41:02 +01:00
Arnout Engelen
814cfa286c Scala 2.13.0 rc2 (#26967) 2019-05-24 08:11:50 +02:00
Arnout Engelen
4ac513a523
Unicode arrows (#26965) 2019-05-21 13:35:11 +02:00
Nicolas Vollmar
f37f41574d Implements actorRef source variant with backpressure #17610 (#26633)
* Implements actorRef source variant with backpressure #17610

* Small improvements to documentation and source #17610

* Small improvements to test #17610

* Small improvements to implementation and tests #17610

* Adds API for akka-typed #17610

* Adds ack sender and java api for typed #17610
2019-05-20 12:19:44 +02:00
Martynas Mickevičius
18d970fc8e Add setup operator #26192 2019-05-17 08:54:18 +02:00
Helena Edelson
4bd40be864
Promote ApiMayChange features #26532 (#26838) 2019-05-07 07:01:59 -07:00
Stefano Bonetti
1ad174cf8c =str #25045 adding Java/Scala interop to SourceQueue and SinkQueue
adding MiMa filters

preserving binary compat
2019-04-15 11:42:06 +02:00
Johan Andrén
7e7901ad49
akka-stream compiler warnings as fatal errors (#26673) 2019-04-05 13:06:33 +02:00
Nicolas Vollmar
c9b3f1de6d GrapheStage implementation for actorRef source (#25324) (#26054)
* Adds internal access to materializer before initialization (#25324)

* Implements new actorRef source based on graph stage  (#25324)

* Removes obsolete actorRef source (#25324)

* Improves backwards compatibility with old implementation (#25324)

* Removes dedicated new subclass for materializer access again  (#25324)

* Improves implementation (#25324)

* Finalizes implementation (#25324)

* Small improvements to API and documentation (#25324)

* Completion strategy as a replacement for poison pill (#25324)

* Adding more tests and updating the documentation (#25324)
2019-03-27 14:16:38 +01:00
Auto Format
75579bed17 format source with scalafmt, #26511 2019-03-15 10:23:46 +01:00
Auto Format
ce404e4f53 format source with scalafmt 2019-03-11 16:58:55 +01:00
Patrik Nordwall
5c96a5f556 replace unicode arrows
* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
2019-03-11 16:58:51 +01:00
Luc Bourlier
5a425c1dc7 Rename start/endContextPropagation functions to asFlow/Source.. (#26353)
To match FlowWithContext.asFlow
2019-03-04 15:48:24 +01:00
Heiko Seeberger
555fe026d0 Reorder Source/FlowWithContext type parameters #26345 2019-02-21 14:24:35 +01:00
Patrik Nordwall
a920349090
Merge pull request #25951 from RayRoestenburg/wip-context-operators
SourceWithContext and FlowWithContext
2019-01-18 17:27:10 +01:00
Johannes Rudolph
a2c811d75a Cleanup, improvements, simplicification, scaladoc and javadoc of SourceWithContext and FlowWithContext 2019-01-18 15:54:43 +01:00
Raymond Roestenburg
d76d259408 Initial SourceWithContext, FlowWithContext, FlowWithContextOps.
(based on https://github.com/akka/akka/compare/master...jrudolph:jr/withContextOps)
2019-01-18 15:54:13 +01:00
Arnout Engelen
5664f4ae88 clarify watchCompletion only watches the stage, not the stream (#26224)
* clarify watchCompletion only watches the stage, not the stream

* stage->operator
2019-01-13 18:23:15 +01:00
Seeta Ramayya
75713c3469 Missing Java API: Source.empty 2019-01-07 15:02:24 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
Nicolas Vollmar
6e21853797 Adding links to wireTap and alsoTo docs (#25808) 2018-11-27 12:08:53 +01:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Johan Andrén
1d65159923
Merge pull request #25538 from jchapuis/zipLatest
zipLatest and zipLatestWith operators (refs #25392)
2018-10-03 11:28:43 +02:00
Konrad Malawski
f9911facc0 +str #24812 fix signature of monitor()
* make monitor be a keep.both by default
2018-09-25 09:29:51 +02:00
Jonas Chapuis
a098e0b743 add zipLatest and zipLatestWith operators and graphstages 2018-09-21 09:51:28 +02:00
Kazuhiro Sera
482eaea122 Fix several minor typos detected by github.com/client9/misspell (#25448)
* Fix several minor typos detected by github.com/client9/misspell

* Revert s/erminater/erminator/ in /ActorSystemSpec
2018-08-21 11:02:37 +09:00
Christopher Hunt
5be8d975c4 Add some javadsl Flow methods to Source as well (#25476) 2018-08-20 11:24:14 +02:00
Rob Moore
ce185c4dfc Source.actorRef not completing on Success (#25285)
When a Success is received, call onCompleteThenStop instead of just
context.stop; that takes care of the completion logic instead of just
stopping the actor and leaving the stream going.

Add test to ensure the stream materializes on Source.actorRef receiving
Status.Success

Remove tests around stream completion behaviour in response to
PoisonPill - as well as these tests not correctly demonstrating that the
completion was passed on downstream, they describe behaviour which was
previously incidental and is no longer accurate.

Update the docs to reflect that PoisonPill should not be used on the
actor ref as this scenario will necessarily result in bad behaviour as
it will be unable to signal the completion downstream.

Make a few grammar fixes and remove some trailing space while updating the
docs.
2018-07-09 22:25:32 +01:00
Jeffrey Chung
72bd3cdfd4 Note in the docs that the zero value for fold and friends must be immutable #24971 2018-06-19 12:33:49 +02:00
Richard S. Imaoka
60eee84345 Replace graph with operator in Scaladoc/Javadoc 2018-06-09 17:42:56 +09:00
Stefano Bonetti
db057df5d9 =str #25091 javadsl ZipWithIndex to return java.lang.Long 2018-05-14 15:22:35 +02:00
Konrad `ktoso` Malawski
7fa28b3488
consistent wording; stream ops are "operators" (#25064) 2018-05-09 16:50:32 +02:00
Konrad `ktoso` Malawski
ca2fe92f0d =str clarify invocation semantics of wireTap, make test less flaky #24979 2018-04-26 14:56:58 +01:00
Konrad `ktoso` Malawski
cceb184098 =str javadoc rewording on new wireTap method 2018-04-25 12:44:47 +09:00
Konrad `ktoso` Malawski
11a397d9c5
+str add in-line wireTap operator for sideeffecting (#24610) 2018-04-25 01:02:31 +09:00
Patrik Nordwall
6f330ef69c automatic throttle burst size, #24699 (#24784)
* automatic throttle burst size, #24699

* throttleEven used maxBurst=Int.MaxValue, which in practise resulted
  in no throttling at all at high rates
* The original problem that throttleEven tried to solve was that when
  the throttle rate (cost / per) was high the cost of scheduling
  dominated and became much lower than the given rate, if 0 or low
  maxBurst was given. Difficult for user to know what maxBurst to use.
* In fact, that was already the case for rates > 30/s.
* This is fixed by automatically adjusting the maxBurst for higher
  throttle rates in a new throttle overload that doesn't include
  maxBurst parameter
* Also skipped the mode parameter for that variant since Shaping is
  what almost always is what you want, and otherwise you can use
  the full signature with a good maxBurst
* Deprecated throttleEven, since it is the same. Also fixed the
  implementation of throttleEven to use the automatic burst size,
  since Int.MaxValue is not useful at all.
2018-04-02 15:07:16 +01:00
mikolak-net
00068e2d1d Extrapolate stage and expand redoc #23804 2018-03-27 10:39:25 +02:00
kerr
e98c77e976 + str Add java.time.Duration to akka-stream's javadsl.* (#24706)
* + str Add java.time.Duration to javadsl.Source

* + str Add java.time.Duration to javadsl.Flow

* + str Add java.time.Duration to javadsl.BidiFlow

* + str Add java.time.Duration to javadsl.RestartSource,RestartFlow and RestartSink

* + str Add java.time.Duration to javadsl.StreamConverters

* + str Add java.time.Duration to javadsl.SubFlow

* + str Add java.time.Duration to javadsl.SubSource

* !stream Deprecate methods which previously accepts Scala's FiniteDuration.
2018-03-19 14:57:26 +09:00
Jimin Hsieh
2c2b8ba001 Remove some of Unused import warning (#24650) 2018-03-16 12:08:29 +01:00
Johan Andrén
d8b9bb1b3a
Java Flow dsl lower bounds incorrect #24368 2018-03-15 14:53:50 +01:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
Roman Filonenko
0ecadf7235 deduplicate logic for IODispatcher #24604 (#24619)
* deduplicate logic for IODispatcher #24604
 * introduce a resolveDispatcher helper in ActorAttributes
 * mention akka.stream.materializer.blocking-io-dispatcher instead of akka.stream.blocking-io-dispatcher in scaladocs
 * fix a flaky test
 * cosmetic changes in the touched files

* move resolveDispather helper to the Dispatcher companion object under a new name resolve

* filter out mima warning

* fix mima excludes after the 2.5.11 release

* address review comments
 * update stream-io.md with the correct dispatcher config key
 * mark ActorAttributes.Dispatcher#resolve as internal API
 * use the dispatche config key in ActorMaterializer

* add private[akka] to the resolve methods
2018-03-07 15:12:34 +01:00