Commit graph

42 commits

Author SHA1 Message Date
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
Ikenna Darlington Ogbajie
fb9bb51dc7 Add examples in Scala documentation for Source.fromFuture #24933 (#25374)
* Add scala documentation for Source.fromFuture #24933
2018-07-20 07:17:05 +01:00
Gordon Cheung
1638580339 Added code example for the stream operator map (#25373)
* Added code example for the stream operator map
2018-07-19 08:15:17 +01:00
Patrik Nordwall
02f6899952 example for Streams log operator (#25283)
* and added all log levels in Attributes for convenient single access point
2018-06-30 12:10:10 +09:00
Richard Imaoka
a17a61557c doc Replace the word stage by operator in stream doc (#25138) 2018-05-29 10:00:48 +02:00
Konrad `ktoso` Malawski
de04758bb8 more docs for Sink.queue and actorRefWithAck (#25063) 2018-05-22 11:27:54 +02:00
Arnout Engelen
9869c2355e
Fix Java Doc test for actorRefWithAck (#25079) 2018-05-15 11:52:07 +02:00
Johan Andrén
09025092ae Remove words such as simply and obviously from docs (#25095)
* One does not "simply"

* It's not obvious

* It's not really _that_ easily done

* Basically is basically a useless word

* Of course - if you already know how things work you wouldn't be reading the docs

* Clearly is maybe not so clear for everyone

* Just was just a bit harder as there are some uses that are just
2018-05-15 07:11:03 +01:00
Konrad `ktoso` Malawski
d870d37bb3 =doc missing ACK reply in doc example (#24997) 2018-04-30 14:12:04 +02:00
Konrad `ktoso` Malawski
046b88ce90
+doc Add examples to Sink.actorRefWithAck (#24854) 2018-04-12 22:06:37 +09:00
Justin Pihony
dd884117c1 Remove explicit outlet selector from graph docs (#24852) 2018-04-06 15:11:24 +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
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
Roman Filonenko
8fcf728b7a fix Trigger references in the stream cookbook example for digest #24317
* replace Trigger with Unit
 * cosmetic changes in docs.stream.cookbook tests
2018-03-03 08:52:02 +01:00
Konrad Malawski
4714f16dcf +str #18142 ask pattern integration for akka streams
progressed with cleanup, removing the same thread exec context is
weird... causes issues :-/ Need to debug more, could be that some race
also exists in mapAsync then :\

WIP

finish ask impl via watch stage

mima

consistency spec

fix paradox, and fix adding ask/watch to javadsl source

follow up review
2018-02-22 19:50:46 +09:00
Stefano Bonetti
3ea59b1e76 Adding preMaterialize operator for Source #23894 (#24497) 2018-02-21 15:06:01 +09:00
Johan Andrén
2b8b946bc7 A bit more generous timeouts in RateTransformationDocSpec #24559 (#24564) 2018-02-19 11:19:56 +01:00
Christopher Batey
eede5533ac
Chunker should only pull if buffer is empty (#24019)
For the current Chunker if the upstream sends larger messages than the
chunk size the buffer can slowly fill up until the app OOMs. Change it
so it only pulls if the buffer is empty
2018-02-14 16:18:58 +00:00
Richard Imaoka
b3a27d1c9f Add log() in stream-error.md (#24522)
* Add log() in stream-error.md (#23722)
2018-02-12 14:30:54 +00:00
Johan Andrén
cb048457c8
StreamTcpDocSpec: Less race, better error if client fails #24500 2018-02-12 14:42:52 +01:00
Johan Andrén
4cde6e7feb Less fragile way of waiting for stream completion #24501 (#24528) 2018-02-12 14:38:22 +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
Patrik Nordwall
e4dd3c24fc add maxRestarts to RestartWithBackoff #24129 2018-01-16 18:28:10 +01:00
Catalin Ursachi
2360de583d Add streams recipe for 'source from function' (#22074) (#24132) 2018-01-16 15:29:03 +01:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Johannes Rudolph
f996731c42 =docs use stream compression in recipe (#23823)
* =docs use stream compression in recipe

* Also use Compression.gzip in scaladsl example
2017-12-05 16:46:54 +01:00
Richard Imaoka
a7c384b945 Add stream-substream.md #23461 2017-11-28 09:03:13 +01:00
Konrad `ktoso` Malawski
4d583d1e6c
+doc document lifecycle of ActorMaterializer explicitly (#23836)
* +doc #23835 document lifecycle of ActorMaterializer explicitly

* Update stream-flows-and-basics.md

* Update stream-flows-and-basics.md
2017-11-09 00:26:02 +09:00
Richard Imaoka
0988933fac Stream cookbook sample for adhoc source (#23761) 2017-11-01 15:24:05 +01:00
Arnout Engelen
b1df13d4d4 Update scalariform (#23778) (#23783) 2017-10-06 10:30:28 +02:00
Patrik Nordwall
945ade245e Add PartitonHub, #21880
* FixedSizePartitionHub in Artery
* expose consumer queue size
2017-08-09 17:00:35 +02:00
Johan Andrén
407131cb4e Stream supervision doc clarification #23376 2017-07-26 16:23:46 +02:00
Daniele Torelli
f23c1f3456 Docs: Improve TwitterStreamQuickstartDocSpec fiddle code (#23411)
* Hashtags should not contain any special character
* Leverage `Set[Hashtag]` to remove duplicates across different tweets
* Add clarifying comments
2017-07-26 09:56:29 +02:00
James Roper
c60d20af32 Restart Flow/Source/Sink #19950 2017-07-20 15:02:34 +02:00
Arnout Engelen
aec87a94c4 Include imports in the GraphStage logging snippets (#23378) 2017-07-19 22:11:59 +09:00
andrea
833f3e8f32 addressing comments 2017-05-22 16:11:53 +02:00
andrea
8a6cebedef +doc Basic Fiddle interactive examples 2017-05-22 16:11:53 +02:00
Patrik Nordwall
59f53e1a22 move code to src/test
* so that it compiles and tests pass
* fix some additional snip references in getting started
2017-05-11 17:36:45 +02:00