Commit graph

1184 commits

Author SHA1 Message Date
Patrik Nordwall
4931c2ecef doc: Rewrite general actors page, #24717
* incorporate "A Little Bit of Theory" into general concepts
* remove "Relation to Akka (untyped) Actors"
2019-08-22 10:29:47 +02:00
Arnout Engelen
34f9faf5fa
Convert 'Blocking needs Careful Management' from classic (#27498)
* Convert 'Blocking needs Careful Management' from classic

* Move triggering blocking calls to separate methods

* Remove classic examples of dispatching
2019-08-16 17:35:52 +02:00
Arnout Engelen
836d020e78
Remove 'How To' section of the docs (#27223) 2019-08-16 09:28:25 +02:00
Christopher Batey
6c13949aec Use protobuf3 for internal serialization (#27366)
* Only load akka protobuf serializer if protobuf on the classpath
2019-08-15 17:43:19 +02:00
Patrik Nordwall
251fdff519
Merge pull request #27484 from akka/collapseProjectAndAdditionalInformation
Collapse 'project information' and 'additional information'
2019-08-14 15:35:29 +02:00
Patrik Nordwall
f808dd0f30
Merge pull request #27494 from akka/dispatchersDoc
Move generic dispatcher docs from Classic
2019-08-14 15:19:31 +02:00
Patrik Nordwall
a821c9cb67 follow up on style guide changes for private vs public (#27495) 2019-08-14 09:21:51 +02:00
Arnout Engelen
230905c85a
Move generic dispatcher docs from Classic (#27223)
'Blocking Needs Careful Management' and 'CallingThreadDispatcher'
still need to be done, but those also need example changes, so
leaving that for another PR
2019-08-13 15:01:44 +02:00
Arnout Engelen
d75720ab33
Collapse 'project information' and 'additional information' #27223 2019-08-12 15:39:40 +02:00
Arnout Engelen
dd7dad1b7b Typo alowing -> allowing (#27458) 2019-08-06 11:40:32 +02:00
Arnout Engelen
a7e8ad2918 Update paradox (#27457)
Which adds checks for dead references and pages that are unexpectedly not
in any table of contents
2019-08-06 06:41:53 +02:00
Christopher Batey
d41622296e Clean up of persistence and cluster docs (#27451)
* Moves generic sections to main index rather than classic
* A few renames from persistence to event sourced actors
Refs #27223
2019-08-04 07:30:56 -07:00
Dale Wijnand
c4417d1c59 Reword the "private messages" typed style docs (#27392)
Use Message/Command/Event as a better example, as the
PrivateCommand/Command example seemed to go out of its way to look
like an unattractive implementation strategy.

Oh, and touch up the "Partial versus total Function" section below too.
2019-07-29 12:00:27 +02:00
Christopher Batey
e188b1f653 Migration guide for Persistent FSM to typed persistence (#27336) 2019-07-26 10:01:11 +02:00
Helena Edelson
3534a0b977
Productionize: GetShardRegionStats returns empty shard set on ask timeout (#27395) 2019-07-25 08:00:34 -07:00
Johannes Rudolph
e39bbb34b8
Deemphasize CallingThreadDispatcher in the docs (#27401)
Deemphasize CallingThreadDispatcher in the docs
2019-07-25 14:26:38 +02:00
Helena Edelson
96abaf2168 Add clarification to doc on cluster cross boundary use of DeathWatch (#27385)
* Add clarification to doc on cluster cross boundary use of DeathWatch #27376

* Clarrified reasoning and behavior update, and updated warning config name to same convention.
2019-07-25 14:12:57 +02:00
Christopher Batey
625eb7b913 Re-write output stream subscriber as graph stage (#26827) 2019-07-25 13:51:47 +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
Helena Edelson
ba2384893f Expand on rolling update recommendations, best practices (#27382) 2019-07-25 11:53:16 +02:00
kenji yoshida
94857fd4e1 update mima url (#27407) 2019-07-24 14:22:10 +02:00
Dale Wijnand
5997f516de Reword the "Where to define messages" style docs (#27393) 2019-07-24 13:26:43 +02:00
Arnout Engelen
ccd2c9aff6 Include version error in the docs (#27365)
So the relevant section will show up in google
2019-07-24 07:47:37 +01:00
Johannes Rudolph
743c542e18 streams: clarify how to complete a Source.actorRef in Scaladocs and docs (#27325)
* streams: clarify how to complete a Source.actorRef in Scaladocs and docs
2019-07-23 19:17:11 +02:00
Christopher Batey
6c416c2818 User serializer for protobuf3 (#27362)
* User serializer for protobuf3
2019-07-23 16:22:07 +02:00
Arnout Engelen
df57d42782
Deemphasize CallingThreadDispatcher in the docs (#27387) 2019-07-23 10:09:59 +02:00
Kun Song
5e68cd0297 Fix a typo in Stash document (#27399) 2019-07-23 09:35:31 +02:00
Dale Wijnand
f2eec1106d Reword the "ask versus ?" typed style docs (#27390) 2019-07-23 09:25:34 +02:00
Dale Wijnand
fb653cc336 Fix some grammar in the typed style guide (#27388)
Also, use English ("for example") rather than Latin ("e.g.") in docs.
2019-07-22 15:25:01 +02:00
jeremie-seguin
950ec71294 fix typo in stream doc (#27379) 2019-07-19 09:18:08 +02:00
Johan Andrén
03b8c543fc Serialization support for wrapped stream refs (#27353) 2019-07-16 10:11:33 -07:00
Patrik Nordwall
10c2b0714a reduce message sizes for Gossip and DeltaPropagation in ddata, #27175 (#27176) 2019-07-16 14:22:16 +02:00
Johan Andrén
2626f17747
Select mailbox in Akka typed actors #27124 2019-07-16 13:52:23 +02:00
Johan Andrén
d03294d359
Align SpawnProtocol with style guide #27318 2019-07-16 11:36:12 +02:00
James Roper
511356177d Added actor termination coordinated shutdown task #27089
A convenience method that allows creating a
shutdown task by sending a message to an actor, and watching for its
termination.
2019-07-16 10:56:48 +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
Johan Andrén
f0e42d2b9c
Cluster aware routers for typed #26355 2019-07-15 15:25:00 +02:00
Patrik Nordwall
6f94707cfd Style Guide: Additional sections, #22805
* Behavior factory method
  * AbstractBehavior via Behaviors.setup
* Where to define messages
* Public vs. private messages
* Singleton messages, enum
* ask vs ?
* Partial vs. total Function
* Additional naming conventions
* Lamdas vs. method references
* intro

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-07-12 17:13:58 +02:00
Patrik Nordwall
32726dad5f
Merge pull request #27272 from akka/wip-22805-helloworld-patriknw
Style: Update HelloWorld sample to OO style for Java, #22805
2019-07-12 13:47:24 +02:00
Patrik Nordwall
17b192a795
Merge pull request #27322 from akka/wip-25708-test-conf-patriknw
Use application-test.conf for typed testkit, #25708
2019-07-12 13:46:01 +02:00
Patrik Nordwall
7505a13fc2 fix FIXMEs in Jackson serializer and docs (#27316) 2019-07-12 13:31:24 +02:00
Patrik Nordwall
d2d4aa96e3 Style Guide: Passing around too many parameters, #22805 2019-07-12 11:58:33 +02:00
Patrik Nordwall
af77bf3fb0 Use application-test.conf for typed testkit, #25708
* solves the problem that previously it loaded application.conf
  if no Config parameter is used, but not otherwise
* application.conf should normally not be used by tests,
  but if someone prefer that it's easy enough to use it via
  `ConfigFactory.load()` or via include in application-test.conf
2019-07-12 11:55:29 +02:00
Arnout Engelen
fe09b41ffe
Remove infinite redirect from docs (#27341)
Fixes https://github.com/akka/akka.github.com/issues/624
2019-07-12 11:17:08 +02:00
Patrik Nordwall
8f8684ae6c Doc trait+object (enum) serialization for Jackson (#27244)
* Doc trait+object (enum) serialization for Jackson

* move to separate file
2019-07-12 08:25:10 +01:00
Patrik Nordwall
2a57ec4e3d adjust Cluster in docs ToC (#27323) 2019-07-12 08:23:59 +01:00
Patrik Nordwall
3efc1c2877
Disable Java serialization by default, #22333 (#27285)
* akka.actor.allow-java-serialization = off
* Moved primitive (Long, Int, String, ByteString) serializers
  from akka-remote to akka-actor since they had no dependency
  and are useful also in local systems, e.g. persistence.
  * e.g. needed for persistence-tck
  * less allow-java-serialization=on in tests
* CborSerializable in Jackson/test module for ease of use
* JavaSerializable for Java serialization in tests, already in akka-testkit,
  but misconfigured
* Made tests pass
  * allow-java-serialization=on in akka-persistence
  * allow-java-serialization=on in classic remoting tests
  * JavaSerializable and CborSerializable in other remoting tests
* Added serialization for
  * Boolean
  * java.util.concurrent.TimeoutException, AskTimeoutException
* support for testing serialization with the inmem journal
* utility to verifySerialization, in SerializationTestKit
* remove AccountExampleWithCommandHandlersInState becuase not possible to serialize State when it's not static
  * Effect() is factory in EventSourcedBehavior  class
* test the account examples
* SharedLeveldbJournal.configToEnableJavaSerializationForTest
* support for exceptions from remote deployed child actors
  * fallback to akka.remote.serialization.ThrowableNotSerializableException
    if exception is not serializable when wrapped in system messages from
    remote deployed child actors and Status.Failure messages
  * it's implemented in `WrappedPayloadSupport.payloadBuilder`
* update reference documentation
* serialize-messages=off in most places, separate ticket for
  improving or removing that feature
* migration guide, including description of rolling update

* fix 2.13 compiler error

* minor review feedback
2019-07-11 14:04:24 +02:00
Patrik Nordwall
8d69388d0a Deprecate classic remoting classes (#27237)
* Sprinkle deprecated annotation to public classes for classic remoting
* Use right dispatcher setting for a few remoting actors
* New Artery events for QuarantinedEvent, GracefulShutdownQuarantinedEvent
  and ThisActorSystemQuarantinedEvent because old were not good
  and would cause binary compatibility trouble when we remove classic
* silence more deprecation warnings
2019-07-10 14:26:51 +02:00
Patrik Nordwall
041db6f549 Rename widen to transformMessages, #27253 2019-07-10 14:17:59 +02:00
Patrik Nordwall
e5dbd939be
Merge pull request #27256 from akka/wip-26684-additional-bindings-patriknw
Remove additional-serialization-bindings, #26684
2019-07-10 12:14:37 +02:00