Commit graph

225 commits

Author SHA1 Message Date
Viktor Klang
6fb06ee46b Merge with master and adding copyright notices on the osgi stuff 2012-07-01 22:31:39 +02:00
Oliver Schulz
777addc66c Merge branch master into bs-iterators
Resolved Conflicts:
	akka-actor/src/main/scala/akka/util/ByteString.scala
2012-07-01 17:29:12 +02:00
Viktor Klang
8ede1f55e9 Moving to s.c.EC and s.c.A, compiles but tests aren't passing 2012-06-29 16:40:36 +02:00
Viktor Klang
0bf45a9403 Initial work in moving to scala.concurrent.Await + Awaitable 2012-06-29 16:06:26 +02:00
Viktor Klang
54a3a44bf8 #2292 - Removing akka.util.Duration etc and replace it with scala.concurrent.util.Duration 2012-06-29 13:33:20 +02:00
Viktor Klang
1a7f29aaec Making everything compile and tests pass 2012-06-28 15:33:49 +02:00
Oliver Schulz
9c6deaa475 Changed ByteString docs to hoist example code from separate file 2012-06-19 17:16:30 +02:00
Roland
422cf386c8 incorporate review comments, add docs, see #2031
also add Java sample for creating custom MailboxType
2012-06-19 14:52:02 +02:00
Roland
b60210362e make system.actorOf() non-blocking (and working), see #2031
- introducing RepointableActorRef, which starts out with an
  UnstartedActorCell which can cheaply be created; the Supervise()
  message will trigger child.activate() in the supervisor, which means
  that the actual creation (now with normal ActorCell) happens exactly
  in the right place and with the right semantics. Messages which were
  enqueued to the dummy cell are transferred atomically into the
  ActorCell (using normal .tell()), so message sends keep working
  exactly as they used to
- this enables getting rid of the brittle synchronization around
  RoutedActorRef by replacing that one with a RepointableActorRef
  subclass which creates RoutedActorCells upon activate(), with the nice
  benefit that there is no hurry then to get it right because the new
  cell is constructed “on the side”

misc fixes:

- InvalidMessageException is now actually enforced when trying to send
  “null”
- Mailboxes may be created without having an ActorCell, which can come
  in handy later, because the cell is only needed when this mailbox is
  going to be scheduled on some executor
- remove occurrences of Props(), which is equivalent to Props[Nothing],
  which is equivalent to «bug»
- add test case which verifies that context.actorOf is still synchronous
- plus all the stuff I have forgotten.
2012-06-13 17:57:56 +02:00
viktorklang
9581ec8403 Merge pull request #511 from akka/wip-2134-deathwatch2.0-√
Wip 2134 deathwatch2.0 √
2012-06-05 03:33:01 -07:00
Roland
df479a0bf0 add back TestProbe.reply, see #2172 2012-06-04 11:29:56 +02:00
Roland
de59444795 offer TestKitBase trait, see #2174 2012-06-04 10:03:41 +02:00
Viktor Klang
17ee47079a Incorporating Roland's feedback 2012-06-02 14:49:28 +02:00
Viktor Klang
96f264e842 Initial stab at DeathWatch 2.0, tests don't pass just yet 2012-05-28 16:49:49 +02:00
Roland
0a09cfc893 kick off pattern collection 2012-05-27 14:18:35 +02:00
Roland
24f6406634 fix specs2 samples so they system.shutdown 2012-05-25 14:42:39 +02:00
Viktor Klang
fdd4a85ab0 Adding docs about creating TypedActor children 2012-05-25 00:49:45 +02:00
Roland
dd30e81a1a document Specs2 + TestKit, see #2068, plus fix up broken includes
- include move of doc samples out of akka package also in the
  includecode directives
- fix broken serialization docs, which require one thing in the akka
  package
2012-05-24 22:23:36 +02:00
Roland
7d342e5c96 add docs about how to serialize ActorRefs
- scala & java samples of how to obtain the correct address to inject
  when calling ActorPath.toStringWithAddress
2012-05-24 19:27:29 +02:00
Roland
9ac11a6432 improve documentation of explicitly given routees 2012-05-22 13:07:05 +02:00
Patrik Nordwall
0eae9d8d22 Move all doc examples out of the akka-package to avoid use of private APIs. See #2092 2012-05-22 11:37:09 +02:00
Viktor Klang
fad9470005 Merge branch 'master' into wip-2006-binary-compat-√ 2012-05-21 20:21:27 +02:00
Jonas Bonér
ae84ee0a57 Updated copyright to 2012 2012-05-21 16:45:15 +02:00
Viktor Klang
3ba5db053a Merge branch 'master' into wip-2006-binary-compat-√ 2012-05-21 14:37:42 +02:00
Patrik Nordwall
6eb8da6eb5 Minor adjustments from feedback. See #2072 2012-05-20 21:00:18 +02:00
Viktor Klang
2bb255b480 Removing ActorTimeoutException everywhere... I swear it... 2012-05-18 15:23:21 +02:00
Patrik Nordwall
877981caef DOC: TestKit sample is wrong. See #2072
* Added code to TestKitUsageSpec.scala
* Fixed errors
* Fixed race
2012-05-18 13:28:53 +02:00
Viktor Klang
57c5dd00e0 Removing akka.actor.Actors since they were deprecated in 2.0.2 2012-05-07 20:37:56 +02:00
viktorklang
5c9dff8ad2 Merge pull request #430 from akka/wip-camel-doc
Incremental docs migration for Camel
2012-05-07 11:19:45 -07:00
Roland
26925687f9 Merge branch 'wip-FSM-∂π' 2012-05-07 19:29:59 +02:00
Roland
c3f7aac8f3 make transform DSL nicer, see #1966 2012-05-07 18:21:26 +02:00
Roland
838eaa4345 make all FSM doc code snippets compiled, see #1871
- also remove gratuitious (aka wrong) type parameters from StopEvent
- document new “transform” funcitonality
2012-05-07 17:52:14 +02:00
Roland
afd81d8506 Revert "closes #2019: Use parentheses for arity-0 methods which are not referentially transparent"
This reverts commit 8dbfbbe966.
2012-05-03 21:14:47 +02:00
Piotr Gabryanczyk
5d410ce1d1 Consumer Actors section 2012-05-02 21:13:52 +01:00
Roland
1cfa267b80 do not reuse same port in same ømq test, fixes #2022 2012-04-27 17:07:50 +02:00
Heiko Seeberger
8dbfbbe966 closes #2019: Use parentheses for arity-0 methods which are not referentially transparent 2012-04-24 16:38:21 +02:00
Viktor Klang
23ffacde9a The unborkening of master, fixing breakage in camel docs 2012-04-24 13:48:13 +02:00
Piotr Gabryanczyk
f132d193f1 Extracting code to scala files 2012-04-24 09:41:31 +01:00
Viktor Klang
8ac7ac8499 Adding docs section on how to proxy ActorRefs with TypedActors 2012-04-23 16:19:58 +02:00
Viktor Klang
b7947ca772 #1885 - Adding section on serializing ActorRefs 2012-03-05 11:30:21 +01:00
Roland
64b523638e rework childrenRefs to make context.stop(child) fully asynchronous
- replace TreeMap with custom ChildrenContainer, which has three
  implementations: empty, normal and “terminating” (i.e. waiting for
  some child to terminate)
- split recreate() in the same way as terminate(), so that there is a
  phase during which the suspended actor waits for termination of all
  children which were stopped in preRestart
- do not null out “actor” in ActorCell during restart, because we do
  need the supervisionStrategy and nulling it out does not buy us much
  in this case anyway
- provide new ActorContext.suspendForChildTermination(), which enters
  limbo for as long there are outstanding termination requests; this
  enables code which is very similar to previously (half-working) setups
  with “synchronous” context.stop(child)

docs are still missing, plus a little polishing here and there; oh, and
before I forget: ActorCell NOW is 64 bytes again ;-)
2012-02-29 21:10:31 +01:00
Roland
5fe27b523b rename AddressExtractor to AddressFromURIString, see #1865 2012-02-27 10:28:20 +01:00
Roland
b4fcc3b2f2 Merge remote-tracking branch 'origin/master' into wip-1836-durMB-settings-∂π
... and fix up MailboxType docs with new constructor signature.
2012-02-26 21:38:56 +01:00
Roland
eaee16c7d3 include system.settings when constructing MailboxType, see #1864
- necessary to not have to construct one Settings object per
  MessageQueue
- added system.settings to DispatcherPrerequisites
2012-02-26 21:26:25 +01:00
Viktor Klang
1e7ce2bfc7 #1859 - rewriting dispatcher docs 2012-02-24 14:28:17 +01:00
Roland
18cd7f8d5f Merge branch 'wip-1854-fix-restart-∂π' 2012-02-22 15:52:11 +01:00
Roland
ae4a1960ad document multi-arg logging, see #1856 2012-02-22 11:00:00 +01:00
Viktor Klang
98b74a974c Last minute awesomization of the priority based mailbox API docs 2012-02-21 18:24:56 +01:00
Viktor Klang
2b4c8b2508 Changing so that PriorityMailboxes can be used 2012-02-21 17:24:09 +01:00
Roland
c84daf83e8 clean up mailbox types configurability, see #1843
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
2012-02-21 16:40:34 +01:00