Commit graph

65 commits

Author SHA1 Message Date
Björn Antonsson
c3eed374f1 Allow different types of mailboxes on the same dispatcher. See #2687 2013-04-19 13:42:58 +02:00
Roland
28aad82b1a deprecate closure-taking Props factories, see #3081
- base Props on Deploy, Class and Seq[Any] (i.e. constructor args)
- remove deprecated Props usage from akka-docs sample code
- rewrite UntypedActorDocTestBase
- rewrite Java/Scala doc section on actor creation
- add migration guide entry
2013-04-16 12:48:31 +02:00
Roland
bcfbea42c1 fix formatting of Java API in doc comments + genjavadoc 0.3 2013-03-07 09:05:55 +01:00
Viktor Klang
adfeb2c1f0 #2879 - updating copyright info 2013-01-09 11:38:00 +01:00
Viktor Klang
d0717aaec6 #2776 - deprecating and introducing alternatives for methods and parameters ending with '_?' 2012-12-14 14:55:21 +01:00
Viktor Klang
20881c777d #2396 - Removing the Props.apply(ActorContext => Actor.Receive) method as it is superceded by the ActorDSL 2012-08-29 18:00:14 +02:00
Viktor Klang
9094199011 Clarifying that Props is immutable 2012-08-14 10:27:18 +02:00
Viktor Klang
ef6b78dbc5 #2348 - SI-4804 is fixed so enabling serialversionuids 2012-07-30 13:26:12 +02:00
Viktor Klang
5f335cb8c8 Making sure that TypedActor use the same instantiation strategy as FromClassCreator 2012-06-26 14:17:58 +02:00
Viktor Klang
1711934043 Mergin in the latest master 2012-06-20 11:28:40 +02:00
viktorklang
74e69c4ebd Merge pull request #539 from akka/wip-2217-create-nonpublic-class-√
#2217 - setting accessible = true before newInstance
2012-06-18 01:40:56 -07:00
Viktor Klang
cd0c89d939 Adding -feature and trying to find scala versions for our akka-actor-test dependencies. Also updating the version of Scalatest, specs2 and junit 2012-06-15 13:04:10 +02:00
Viktor Klang
4ee2033761 Lots and lots of work to get things to compile without warnings 2012-06-13 15:44:24 +02:00
Viktor Klang
6bb1bf6795 Switching to getDeclaredConstructor.newInstance as a fallback 2012-06-13 15:19:58 +02:00
Viktor Klang
d6e3642d9d Removing all uses of immutable.Stack in Akka 2012-06-13 14:08:47 +02:00
Viktor Klang
8ce6ac3e3e #2217 - setting accessible = true before newInstance 2012-06-13 12:23:02 +02:00
viktorklang
8f09182148 Merge pull request #453 from akka/issue-2076
closes #2076: Streamline usage of parens on arity-0 methods with the Style Guide (once more)
2012-05-28 16:49:43 -07:00
Roland
0a09cfc893 kick off pattern collection 2012-05-27 14:18:35 +02:00
Roland
178c9145fe document creator requirement, see #2131 2012-05-25 18:17:13 +02:00
Viktor Klang
3ba5db053a Merge branch 'master' into wip-2006-binary-compat-√ 2012-05-21 14:37:42 +02:00
Viktor Klang
cd31b4b103 Touch-up of Props 2012-05-16 15:38:22 +02:00
Patrik Nordwall
31ace9e83f Optimize remote serialization for the create from class case. See #1755
* Added FromClassCreator as special Function0 to be able to serialize
  class name as protobuf string
2012-05-15 18:22:40 +02:00
Heiko Seeberger
3e44cda33b closes #2076: Streamline usage of parens on arity-0 methods with the Style Guide (once more) 2012-05-15 12:13:23 +02:00
Viktor Klang
b9a4e3a7c4 Clarifying the error message given when there's an InstantiationException during create 2012-05-07 15:10:59 +02:00
Patrik Nordwall
2a167acd92 Some cleanup and additional tests for Serializable. See #1786
* Tried to add @SerialVersionUID(1L) but that removed static forwarders, due to https://issues.scala-lang.org/browse/SI-4804
* Added Serializable to UntypedActorFactory
* Removed some unecessary Serializable
2012-02-07 10:28:42 +01:00
Patrik Nordwall
9c8c0d42c5 Add @SerialVersionUID to Serializable classes. See #1786
* @SerialVersionUID(1L)
* UntypedActorFactory serialization, and test
* Removed Serializable from Serializers
2012-02-07 10:05:54 +01:00
Roland
45140b465e Merge remote-tracking branch 'origin/master' into wip-1644-programmatic-deploy-∂π 2012-02-03 09:49:04 +01:00
Roland
c699c3d32d include review comments
- rename NoScope -> NoScopeGiven
- add scaladoc for scopes
- add some return types
2012-02-03 09:43:23 +01:00
Roland
10974acfe8 make it possible to programmatically deploy (e.g. remotely), see #1644
- add Deploy to Props, which is used as the basis (overridden by
  configuration)
- utilize general mechanism .withFallback (introduced on Deploy,
  RouterConfig and Scope)
- actually pass Props over the wire when deploying remotely in order to
  retain settings (this was an oversight before)
- write tests for the new functionality
2012-02-01 15:19:51 +01:00
Patrik Nordwall
d12d56a1ae Move hotswap stack into Actor trait. See #1717 2012-01-30 13:27:48 +01:00
Viktor Klang
f7a45c0e8f Removing dead imports from akka-actor 2012-01-25 15:38:04 +01:00
Patrik Nordwall
66e0a7cf0b Moved definition of fault handler from Props to overridable method supervisorStrategy in Actor. See #1711
* New trait SupervisorStrategy for TypedActors
* Adjustments of docs
* Updated tests
2012-01-23 13:49:19 +01:00
Viktor Klang
149fbea5a7 Updating Copyright as per #1660 2012-01-19 18:21:06 +01:00
Viktor Klang
de151617f2 Creating TypedProps and implementing support for wrapping an arbitrary ActorRef as a TypedActor 2012-01-16 14:11:29 +01:00
Patrik Nordwall
ed2fb14dcf Props.defaultDispatcherId -> Dipsatchers.DefaultDispatcherId. See #1458 2011-12-21 23:46:55 +01:00
Patrik Nordwall
df260f8939 Improvements based on feedback. See #1458 2011-12-21 19:02:06 +01:00
Patrik Nordwall
f772b0183e Initial commit of dispatcher key refactoring, for review. See #1458
* Changed signatures and constructor of MessageDispatcherConfigurator
* Changed Dispatchers.lookup, keep configurators instead of dispatchers
* Removed most of the Dispatchers.newX methods, newDispatcher is still there because of priority mailbox
* How should we make it easy to configure priority mailbox?
* Changed tons tests
* Documentation and ScalaDoc is not updated yet
* Some tests in ActorModelSpec are temporary ignored due to failure
2011-12-21 13:27:50 +01:00
Jonas Bonér
2fd43bc4b1 Removed withRouter[TYPE] method and cleaned up some docs.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-14 16:31:26 +01:00
Jonas Bonér
80600abc33 Added 'withRouter[TYPE]' to 'Props'.
Added docs (Scala and Java) and (code for the docs) for 'Props'.
Renamed UntypedActorTestBase to UntypedActorDocTestBase.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-14 14:05:44 +01:00
Roland
dde676927c Merge branch 'wip-remote-supervision-rk'
fixing up small issue in Props
2011-12-13 17:16:28 +01:00
Roland
92e7693203 Merge remote-tracking branch 'origin/master' into wip-remote-supervision-rk 2011-12-13 16:59:43 +01:00
Jonas Bonér
c8c4f7aad0 Added ScalaDoc to Props.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 16:54:44 +01:00
Jonas Bonér
c9b787f029 Removed all 'actorOf' methods that does not take a 'Props', and changed all callers to use 'actorOf(Props(..))'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 14:09:40 +01:00
Roland
4bd9f6ae1a rename Props.withRouting to .withRouter 2011-12-13 11:32:24 +01:00
Henrik Engstrom
a7886abdf0 Implemented a couple of router types. Updated some tests. See #1440 2011-12-11 22:40:28 +01:00
Henrik Engstrom
90b6833978 Initial take on new routing implementation. Please note that this is work in progress! 2011-12-09 14:46:57 +01:00
Roland
a08234cd9a introduce base64 random names
- remove Props.randomName and associated logic
- ActorRefFactory contains AtomicLong which is used to generate unique
  children names
- base64-like encoding is used with reverse “digit” order
- disallow given names which are null, empty or start with ‘$’
- random names start have ‘$’ prepended (‘$’ not being one of the 64
  characters)
- special marker “$_” for tempPath until “/tmp” supervisor is introduced
- TestActorRef uses globally unique “$$” prefix, as it creates actors
  beneath any supervisor as instructed by the user
2011-11-13 20:38:14 +01:00
Peter Vlugter
7b8a865c00 Rename address to name or path where appropriate
- TypedActor: address -> name
- TestActorRef, TestFSMRef: address -> name
- Props.randomAddress -> randomName
- Remote protocol: address -> name
- Address.validate moved to ActorPath
2011-11-10 12:19:07 +01:00
Viktor Klang
48dbfda255 Reducing sleep time for ActorPoolSpec for typed actors and removing defaultSupervisor from Props 2011-11-08 12:30:46 +01:00
Roland
d55f02e6c1 merge master into parental-supervision, fixing up resulting breakage 2011-10-21 15:11:43 +02:00