Commit graph

2048 commits

Author SHA1 Message Date
Marcin Kubala
f4793a399f =act,clu,con,doc,per,rem,sam #15114 append missing parens at Actor.sender() invocations 2014-06-20 23:05:51 +02:00
Konrad 'ktoso' Malawski
a71790bb18 +per #15229 defer for PersistentActor
* Deferred events are not persisted, thus will not participate in replays
  etc. If users want events to be persisted, they can simply use
  `persistAsync` instead.
* This, 3rd, rewrite extends the Persistent hierarchy by a top level
  trait "Resequenceable", which is used to mark every event to be sent
  in sequence back to the PersistentActor. These are split into
  NonPersistentRepr or PersistentRepr, and acted upon accordingly.
* defer is guaranteed to be called, even after persistence failures
* Includes docs updates for java/scala/java8

Resolves #15229
Depends on #15227

Conflicts:
	akka-docs/rst/scala/code/docs/persistence/PersistenceDocSpec.scala
	akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala
	akka-persistence/src/main/scala/akka/persistence/Processor.scala
	akka-persistence/src/test/scala/akka/persistence/PersistentActorSpec.scala
	project/AkkaBuild.scala
2014-06-10 17:09:24 +02:00
Björn Antonsson
9bcaeff87d +per #13944 Send RecoveryComplete message at end of recovery
Fixes #13944

Conflicts:
	akka-docs/rst/scala/code/docs/persistence/PersistenceDocSpec.scala
	akka-persistence/src/main/scala/akka/persistence/Processor.scala
	project/AkkaBuild.scala
2014-06-10 13:22:10 +02:00
Konrad 'ktoso' Malawski
d51b79c95a !per persistAsync
Breaks binary compatibility because adding new methods to Eventsourced
trait. Since akka-persistence is experimental this is ok, yet
source-level compatibility has been perserved thankfuly :-)

Deprecates:
* Rename of EventsourcedProcessor -> PersistentActor
* Processor -> suggest using PersistentActor
* Migration guide for akka-persistence is separate, as wel'll deprecate in minor versions (its experimental)
* Persistent as well as ConfirmablePersistent - since Processor, their
  main user will be removed soon.

Other changes:
* persistAsync works as expected when mixed with persist
* A counter must be kept for pending stashing invocations
* Uses only 1 shared list buffer for persit / persistAsync
* Includes small benchmark
* Docs also include info about not using Persistent() wrapper
* uses java LinkedList, for best performance of append / head on
  persistInvocations; the get(0) is safe, because these msgs only
  come in response to persistInvocations
* Renamed internal *MessagesSuccess/Failure messages because we kept
  small mistakes seeing the class "with s" and "without s" as the same
* Updated everything that refered to EventsourcedProcessor to
  PersistentActor, including samples

Refs #15227

Conflicts:
	akka-docs/rst/project/migration-guides.rst
	akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala
	akka-persistence/src/main/scala/akka/persistence/Persistent.scala
	akka-persistence/src/test/scala/akka/persistence/PersistentActorSpec.scala
	project/AkkaBuild.scala
2014-06-10 11:09:12 +02:00
Martynas Mickevicius
ce0125871b =doc #15213 snapshot repo for snapshot dependencies 2014-05-21 17:19:47 +02:00
Martynas Mickevicius
09e984ad6d =doc #15234 add new google analytics tracker 2014-05-20 11:28:53 +02:00
Martynas Mickevicius
fdcd964165 =pro #15031 separate sbt build file for every module 2014-05-14 10:05:09 +02:00
Evan Tsue
561e852868 =doc #15160 Minor spelling, wording and grammar fixes. 2014-05-11 10:14:50 -04:00
Konrad Malawski
403afada41 Merge pull request #15024 from ktoso/wip-removing-isTerminated-from-buses-ktoso
!act,doc Removing isTerminated from EventStream and ActorClassification
2014-04-25 10:16:53 +02:00
Konrad Malawski
c046cdff0a !act,doc #3893 Removed isTerminated checks from ActorClassification
Instead of isTerminated we now use death watch on subscribers.

! Breaking change - ActorClassification based event buses now require
  and actor system. Previously no actors were involved, but now someone
  has to `watch` the subscribers. The unsubscriber is an system actor,
  and won't be stopped automagically if a bus stops to be used (hard to
  determine what "stops being used" is)
* Replaced isTerminated checks with watching actors
* backing structure for ActorClassification swaped from
  ConcurrentHashMap to immutable.Map with CAS operations on it. This is
  required to avoid races and guarantee register/unregister ordering
  (messages sent with proper sequence numbers) to the unsubscriber.
  Performance tested it and still above 1.3million subscribe+unsubscribe
  ops per second (mac i7, retina), where as the CHM version was
  4 million - but that one could only work in the presence of
  itTerminated - so we pay the price here for removing it.
* `ActorClassification` starts the unsubscriber instance by itself,
  the unsubscriber is an system actor, and can be stopped via
  `ActorClassification#shutdown`
* Will unregister from unsubscriber, when no more subscriptions for
  given subscriber are left in this bus.
* Added missing "Java API: " for some types
* Updated docs to point out the automatic subscriber purging (on terminated)
2014-04-24 14:08:07 +02:00
Patrik Nordwall
09cdfde569 Merge pull request #15011 from csomogyi/master
Fixing minor issues I found while building Akka on Windows
2014-04-24 10:49:28 +02:00
Björn Antonsson
c8ea061472 =pro Update test dependencies to Scala 2.11 cross published versions 2014-04-23 13:58:38 +02:00
Stevo Slavić
8736fb16f9 Fixed a typo 2014-04-16 16:15:15 +02:00
Csongor Somogyi
f11ce9fda1 Updates in the Building Akka documentation page in
accordance with the discussion with @bantonsson
2014-04-15 14:37:12 +02:00
Csongor Somogyi
9230f9710f Fixes #13983
Two changes have been made:
- In AkkaBuild, forced using UTF-8 to verify HTML files containing
  diagrams
- In the documentation chapter Building Akka, added a section clarifying
  the Graphviz dependency of generating Scaladoc Content Hierarchies

These fixes eliminates the issues I faced while building Akka on Windows
with NetBeans. The first issue is a Windows specific issue where the
default charset cannot be UTF-8. The second is Windows related in the
sense that Graphviz, the optional dependency of Scaladoc, had to be
manually resolved.
2014-04-15 11:40:51 +02:00
Roland Kuhn
6a111d5201 Merge pull request #13994 from akka/wip-assembla-migration-∂π
=doc switch to GitHub Issues
2014-04-14 14:57:17 +02:00
Konrad Malawski
3421a966d6 Merge pull request #2125 from ktoso/3982-doc-clarify-eventstream-is-local-ktoso
=doc #3982 Clarify that EventStream is local only
2014-04-14 09:57:12 +02:00
Konrad Malawski
df90cc3a2e =doc #3982 Clarify that EventStream is local only
Devs were confused a few times on the mailing list if the eventstream
publishes to the cluster or not; Suggesting pub-sub if needed in clustered env.
2014-04-14 09:56:19 +02:00
Roland Kuhn
6947f15084 =doc switch to GitHub Issues
also remove the `experimental` marker from multi-node-testing’s docs
2014-04-13 18:38:11 +02:00
Konrad Malawski
3179a02044 Fix task keys to fit sbt 0.13 style (and reality) 2014-04-12 23:51:37 +02:00
Konrad Malawski
2173a037cb Merge pull request #2126 from ktoso/3986-cluster-singleton-may-become-doubleton-during-splits-ktoso
=doc #3986 Cluster Singleton should not be used with AutoDown
2014-04-10 15:39:31 +02:00
Konrad Malawski
08fd4c93fa =doc #3986 Cluster Singleton should not be used with AutoDown
unless you want each partition of the cluster (effectively new clusters),
to spin up their "own" singleton.
2014-04-10 15:38:22 +02:00
Björn Antonsson
167fd4e738 Merge pull request #2102 from jozic/3954-maven-snapshots-docs
=doc #3954 Clarify how to use snapshots with Maven
2014-04-02 15:51:50 +02:00
Patrik Nordwall
c1f7d7fa21 =doc #3924 Doc how to be notified when recovery completed 2014-03-25 10:46:05 +01:00
Eugene Platonov
4c2c152a8c =doc #3954 Clarify how to use snapshots with Maven 2014-03-24 14:40:55 -04:00
Roland Kuhn
4ba1bc46fb Merge pull request #2096 from akka/wip-forward-docs-∂π
=doc #3917 include all reference.conf
2014-03-24 12:03:10 +01:00
Roland Kuhn
d6b33d15a8 add links to reference.conf to docs 2014-03-24 12:02:47 +01:00
Björn Antonsson
8f7faf7898 Merge pull request #2094 from akka/wip-3940-add-sugar-to-abstract-actor-master-ban
+act,sam,doc #3940 Added receive setter for Java Lambda actors
2014-03-22 17:27:59 +01:00
Roland Kuhn
9ed116c4bd =doc #3917 include all reference.conf 2014-03-22 16:21:17 +01:00
Roland Kuhn
bf2bf24c4a Merge pull request #2090 from akka/wip-remoting-multi-fix-∂π
Wip remoting multi fix ∂π (broken commits apart properly)
2014-03-22 15:19:45 +01:00
Björn Antonsson
723c931d16 +act,sam,doc #3940 Added receive setter for Java Lambda actors
* Added a setter for Java lambda actors to "hide" the not so nice looking type signature of the "receive" method.
* Updated docs to reflect the changes.
* Converted samples to use the new setter.
2014-03-22 10:53:54 +01:00
Björn Antonsson
26c493ea4a =per #3915 Make become work during recovery for EventsourcedProcessor et.c. 2014-03-22 00:47:03 +01:00
Roland Kuhn
dc305eaf18 +act #3949 add LoggingReceive.withLabel
def someState = LoggingReceive.withLabel("some state") {
  case msg => ...
}
2014-03-21 20:43:13 +01:00
Björn Antonsson
4b57392143 Merge pull request #2076 from akka/wip-3911-forward-port-ban
(Forward Port) +act #3911 Adding Java Lambda compatibility for Supervisor Strategy
2014-03-17 22:14:33 +01:00
Björn Antonsson
ba7247b240 +act #3911 Adding Java Lambda compatibility for Supervisor Strategy
Conflicts:
	akka-actor/src/main/scala/akka/util/Timeout.scala
2014-03-17 15:04:29 +01:00
Patrik Nordwall
3a9725f538 Merge pull request #2070 from akka/wip-3843-singleton-proxy-sample-patriknw
=sam #3843 Use ClusterSingletonProxy in cluster samples
2014-03-17 14:58:18 +01:00
Roland Kuhn
95d27e3f82 Merge pull request #2067 from akka/wip-WhatIsAkka-∂π
=doc clean up what-is-akka.rst and switch to www.typesafe.com
2014-03-17 14:16:47 +01:00
Patrik Nordwall
ad18405877 =sam #3843 Use ClusterSingletonProxy in cluster samples 2014-03-14 16:32:59 +01:00
Patrik Nordwall
66e4ca9e93 !tes #3920 Remove TestKit.dilated 2014-03-14 14:16:29 +01:00
Patrik Nordwall
7d40ca1840 !act #3920 Remove UntypedActorFactory 2014-03-14 14:15:49 +01:00
Patrik Nordwall
54671271e9 !con #3920 Remove JavaLoggingEventHandler 2014-03-14 14:14:31 +01:00
Patrik Nordwall
e1eec61ca5 !act #3920 Remove Timeout constructor without unit 2014-03-14 14:12:33 +01:00
Patrik Nordwall
1e445b4eba !act,rem,clu #3920 Remove deprecated old routers 2014-03-14 14:12:11 +01:00
Patrik Nordwall
b5be06e90c !clu #3920 Remove deprecated akka.cluster.auto-down
* replaced by akka.cluster.auto-down-unreachable-after
2014-03-14 14:11:28 +01:00
Patrik Nordwall
503c4ced8f !clu #3920 Remove deprecated Cluster.publishCurrentClusterState 2014-03-14 14:11:28 +01:00
Patrik Nordwall
4b977361eb !tra #3920 Remove deprecated durable mailboxes 2014-03-14 14:11:28 +01:00
Patrik Nordwall
9cc586b674 !tra #3920 Remove deprecated akka-transactor 2014-03-14 14:11:28 +01:00
Patrik Nordwall
9f906b2de9 !dat #3920 Remove deprecated akka-dataflow 2014-03-14 14:11:18 +01:00
Roland Kuhn
98c282f115 =doc clean up what-is-akka.rst and switch to www.typesafe.com
the latter is necessary because of broken DNS requirements which make
apex domains brittle (since they must resolve to an A record with a
single IP)
2014-03-13 12:42:47 +01:00
Roland Kuhn
ac5f4fc72e Merge pull request #2050 from drexin/wip-3246-priority-mailbox-drexin
+act #3246 Added control aware mailbox types
2014-03-11 19:36:04 +01:00