Commit graph

242 commits

Author SHA1 Message Date
Andrei Arlou
aaae2b6497
Add @deprecated to akka.stream.OverflowStrategy#dropNew (#30977) (#30993) 2021-12-20 14:16:12 +01:00
Andrei Arlou
6fca339521
Replace try/catch on assertThrows in FlowTest.java (#30560) 2021-08-23 11:52:10 +02:00
Arnout Engelen
999b0853d5
Run akka-stream-tests on Scala 3 (#30451)
Refs #30243

* More createGraph
* Actually delay downstream cancellation
2021-08-13 13:56:38 +02:00
Captain1653
e47af50f51 Remove unchecked cast from SourceTest and FlowTest 2021-06-03 00:03:26 +03:00
Andrei Arlou
258bac491b
Remove unused imports in tests (#30265) 2021-06-01 13:34:43 +02:00
Alex
3ae85e8cd0
Change tests to use new Source.queue api, #29801 (#30070) 2021-05-27 08:53:18 +02:00
Andrei Arlou
f568d4d4f9
Remove usage of Java assert in tests (#30220) (#30227) 2021-05-07 21:27:39 +02:00
Andrei Arlou
1a36631dbb
Use assertThrows in classes ActorCreationTest and OutputStreamSinkTest (#30165) 2021-05-05 10:45:37 +02:00
Andrei Arlou
b3edd0eeac
Refactor GraphDslTest and TcpTest (#30160) 2021-05-03 11:25:41 +02:00
Andrei Arlou
846359919f
Refactor SourceTest.java: use diamong operator, use assertThrows (#30152) 2021-03-30 17:37:19 +02:00
Andrei Arlou
f7c559e057
Use type inference for collections in FlowTest.java (#30110) 2021-03-29 17:34:01 +02:00
Arnout Engelen
31f654768f
Update copyright to 2021 2021-01-08 17:55:38 +01:00
Arnout Engelen
327e16980d
Make warnings in Java code fatal (#28402) 2020-08-04 13:47:38 +02:00
Ignasi Marimon-Clos
c29b71193e
Let's test with stronger cipher suites 2020-06-09 09:44:15 +02:00
XIAO Yang
6328e0a6d6
Implement throttle for Source(Flow)WithContext (#29107) 2020-06-08 13:30:42 +02:00
Jacek Ewertowski
2cccfa3c29
Stream: Sugar for Sink.ignore #27789, #24986 2020-03-23 13:05:25 +01:00
Enno
52c83dca34
Docs: Sink.foreach (#28693) 2020-03-10 09:37:34 +01:00
Johan Andrén
c46861ed26
Add LogWithMarker to Akka Stream #28450 2020-03-05 15:05:05 +01:00
eyal farago
5bb9a7145a
stream: provide mapMaterializedValue for Graph (#28610) 2020-02-20 13:30:32 +01:00
Enno
cff15cf40d
Docs: Source.repeat (and friends) (#28615) 2020-02-19 09:03:59 +01:00
Evgeny Sidorov
dcdaa5a0dd
Example for Source.fromIterator #25468 (#28582)
* add example for Source.fromIterator #25468

* scala fmt code style fix

* don't use test as a sample for docs
2020-02-11 14:58:00 +01:00
Mikhail Limansky
52c01832da Merge remote-tracking branch 'akka/master' into scalatest310 2020-01-17 16:03:32 +03:00
Johan Andrén
044e706eb9
Incorrect assumptions in LazyAndFutureSourcesTest (#28479) 2020-01-14 13:53:05 +01:00
Mike Limansky
d9ed927df0 Update to ScalaTest 3.1.0, fix #28289. 2020-01-11 15:15:10 +03:00
Helena Edelson
6bf20f4117 Update all copyright headers to 2020 after new year's #27881 (#28434) 2020-01-02 13:24:59 +01:00
Andrey Yamshchikov
87b94b65fd Add Java DSL Flow#mapError version without PartialFunction (#24992) (#26310)
* Add an overloaded version of the Flow#mapError (Java DSL) which does not use a Scala PartialFunction.
* Add test verifying mapError matching on parent class
* Add to Source, SubSource and SubFlow as well
2019-12-10 13:05:56 +01:00
Johan Andrén
653d05e7d6 Source.unfold examples (#28081) 2019-12-09 15:32:50 +01:00
Enno
70766dfa18 Docs: Remove extra type params in RetryFlow signature (#28097)
* Docs: Remove extra type params in RetryFlow signature

* Add link to API docs
2019-11-20 11:48:30 +01:00
Johan Andrén
74adecb4e7
Align lazy and future operators #26446 2019-10-16 17:02:12 +02:00
Enno
70c3cdfa97
RetryFlow: retries of individual stream elements with backouff (#27742)
RetryFlow wraps a flow with context and allows to individually retry elements. A decider function decides if another try should be made and gives the element to try with.
Retries are backed off exponentially.
Retries are limited by maxRetries.

Inspired by the work of Gilad Hoch <gilad.hoch@thomsonreuters.com> and Martynas Mickevičius <self@2m.lt>
2019-10-15 18:41:30 +02:00
Johan Andrén
d7aa6d5d03 API compile coverage for Java DSL runWith #27944 2019-10-09 15:25:12 +02:00
Patrik Nordwall
e8a1556060
Streams TLS and Tcp with SSLEngine, #21753 (#27766)
* SSLEngine factory instead of SSLContext and AkkaSSLConfig parameters
  in TLS and Tcp
* Update TlsSpec to use SSLEngine
* Keep copy of old TlsSpec for test coverage of deprecated methods
* Update doc example of how to setup a SSLEngine
* full API and deprecations
* don't use default param values
* java doc example
* migration guide
* mima
* update to sslconfig 0.4.0
  * hostname verification changed in sslconfig, so use jvm verifier
* change to mima file
* update doc sample, init SSLContext once
* remove FIXME for halfClosed
2019-10-08 12:30:41 +02:00
Johan Andrén
b68d67008a
Deprecate actor materializer (#27538) 2019-09-05 16:08:37 +02:00
Johan Andrén
aca63ea198
Materializer settings as attributes (#27499)
* Replace MaterializerSettings with Attributes #25559 
 * Field access to settings deprecated to make stages use attributes instead
 * Internal stages updated to use attributes
 * Docs on ActorMaterializerSettings updated to recommend away from using it
 * Verify all stages stopped after each testcase in FlowGroupBySpec
 * Subscription timeout attributes merged into one
2019-09-04 13:37:06 +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
625eb7b913 Re-write output stream subscriber as graph stage (#26827) 2019-07-25 13:51:47 +02:00
eyalfa
14c02302bc Akka 27103/streams zip all #27103 2019-07-05 16:40:06 +02:00
Christopher Batey
231f0d6bb1 Remove warnings from akka-stream-tests (#27114) 2019-06-13 13:06:02 +02:00
Martynas Mickevičius
18d970fc8e Add setup operator #26192 2019-05-17 08:54:18 +02:00
Arnout Engelen
7b20b89ce0
Add ByteString.emptyByteString to Java API (#26931)
* Add ByteString.emptyByteString to Java API

To work around https://github.com/scala/bug/issues/11509

* Add note to 2.6 migration document
2019-05-16 14:02:49 +02:00
Johan Andrén
18a3569a7e
Java interop via for FlowWithContext #26896 2019-05-15 10:28:12 +02:00
Christopher Batey
c65bf2d276 Remove docs for ActorPub/Sub and write persistence query docs as stages (#26844)
* use separate db columns
* Use io dispatcher for sample stage
2019-05-03 12:36:50 +02:00
mszczygiel
d4813b91c3 Support for null in mapAsync and fromCompletionStage #25475 2019-04-16 09:08:05 +02:00
Arnout Engelen
b214115051
Update scalatest 2019-03-19 11:25:48 +01:00
Seth Tisue
fc23f03031 upgrade to latest ScalaTest (#26387)
stuff moved to a new package. you wouldn't expect that in a point
release, but they put type aliases in place so Scala users wouldn't
notice. but the change is visible to Java code.

the upgrade is not strictly necessary, but it would be convenient
for the Scala 2.13 community build to have this merged, so I don't
have to maintain these changes in our Akka fork
2019-02-17 19:45:39 +00:00
Martynas Mickevičius
d6ae3f1da9 Add asJava/asScala to RunnableGraph #26245 2019-02-07 15:41:49 +01:00
hepin1989
998c5a9285 Formatting java codes with sbt-java-formatter. 2019-01-12 04:00:53 +08:00
Seeta Ramayya
75713c3469 Missing Java API: Source.empty 2019-01-07 15:02:24 +01:00
Seeta Ramayya
1cae9b0d44 25468: added examples for Stream # cycle operator. (#26163) 2019-01-02 15:46:13 +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