Commit graph

41 commits

Author SHA1 Message Date
Henrik Engstrom
8b6afa9937 Removed unnecessary method and utilize System.nanoTime directly instead. See #1381 2011-11-24 14:36:13 +01:00
Henrik Engstrom
310b2736c0 Changed the HWT implementation to use System.nanoTime internally instead of System.currentTimeMillis. Fixes #1381 2011-11-24 14:30:03 +01:00
Henrik Engstrom
7ca5a4161b Introduced Duration instead of explicit value + time unit in HWT, Scheduler and users of the schedule functionality. See #1291 2011-11-23 11:07:16 +01:00
Viktor Klang
4fdf698611 Switching to sun.misc.Unsafe as an experiment, easily revertable 2011-11-21 17:49:21 +01:00
Patrik Nordwall
b8be8f3869 Latest config lib 2011-11-19 09:23:01 +01:00
Patrik Nordwall
4b8f11ea92 Replaced akka.config with new configuration utility. See #1141 and see #1342
* All default values removed from code and loaded from akka-actor-reference.conf, located in src/main/resources (included in jar)
* Default test configuration included in AkkaSpec instead of using akka.test.conf, avoids problems when running test (in IDE) and forgetting to use -Dakka.mode=test.
* System.properties used first, if availble
* Next step will be to split akka-actor-reference.conf in separate -reference for each module
2011-11-18 10:05:40 +01:00
Viktor Klang
1613ff5111 Making sure that dispatcher scheduling for shutdown is checked even if unregister throws up 2011-11-16 16:19:56 +01:00
Henrik Engstrom
f2bec7006f Added explicit import to help SBT with dependencies during documentation generation 2011-11-11 09:30:39 +01:00
Henrik Engstrom
1577f8bcb3 Updated after code review:
Removed logging
Slimmed down the Java code
Moved default scheduler
2011-11-10 16:31:50 +01:00
Henrik Engstrom
896c906d03 Implemented HashedWheelTimer as the default scheduling mechanism in Akka. Fixes #1291 2011-11-10 11:32:26 +01:00
Viktor Klang
91545a4b52 Fixing TestActorRefSpec, now everything's green 2011-10-31 16:09:53 +01:00
Jonas Bonér
9bf9cea0d9 Removed trailing whitespace 2011-10-28 15:55:47 +02:00
Roland
5c823ad50d replace ConcurrentLinkedQueue with single-linked list for Mailbox.systemQueue
cost zero when empty, non-blocking, shave off 84 bytes per actor
2011-10-18 21:21:19 +02:00
Roland
44b94643e5 Merge with Peter's work (i.e. merging master into tame-globals) 2011-10-13 14:17:07 +02:00
Peter Vlugter
317b8bc03b Merge master into tame-globals branch 2011-10-13 13:41:44 +02:00
Roland
85b7accfd4 make EventHandler non-global
- add Logging trait for nicer interface
- add EventHandlerLogging class for offering the nice interface from
  app.log
- add eventHandler instance to app and use that for all internal logging
  (this means that some places (dispatchers, remoting) were infiltrated
  by app just to do logging, but I think we'll need app in there soon
  enough for other reasons)
2011-10-13 13:21:59 +02:00
Jonas Bonér
e20866c982 Moved method for creating a RoutedActorRef from 'Routing.actorOf' to 'Actor.actorOf' 2011-10-11 11:55:59 +02:00
Jonas Bonér
3e6decffc0 Removed the ActorRegistry, the different ActorRefProvider implementations now holds an Address->ActorRef registry. Looking up by UUID is gone together with all the other lookup methods such as 'foreach' etc. which do not make sense in a distributed env. 'shutdownAll' is also removed but will be replaced by parental supervision. 2011-10-10 14:02:33 +02:00
Peter Vlugter
67a9a01bff Merge master into tame-globals branch 2011-10-07 15:59:18 +02:00
Viktor Klang
9a300f863f Removing a synchronization in UUIDGen.java and replace it with a CCAS 2011-10-07 14:59:24 +02:00
Roland
2381ec54d0 introduce AkkaApplication
- remove global Config
- pull everything which depended on it into new AkkaApplication
- leave EventHandler alone for the moment: that evil sucker gets his
  very own AkkaApplication("akka-reference.conf") until we have settled
  on an acceptable logging API without globals
- make akka-actor and akka-testkit compile
- TestKit uses implicit AkkaApplication passing for maximum convenience
- Actor object nearly completely removed, actor creation possible via
  ActorRefFactory interface which is implemented by AkkaApplication and
  ActorContext
- serialization of ActorRef is probably broken, and so is the reflective
  RemoteSupport (now needs AkkaApplication constructor arg)
- everything else is still broken, including akka-actor-tests, so this
  is of course all not runtime-tested
2011-10-06 21:19:46 +02:00
Peter Vlugter
6bb721d7e2 Remove the sun.tools.tree.FinallyStatement import 2011-10-05 18:00:13 +02:00
Viktor Klang
56f8f858be Adding AbstractPromise to create an AtomicReferenceFieldUpdater to get rid of the AtomicReference allocation 2011-10-04 21:17:01 +02:00
Roland
4b5c99e9bd optimize Mailbox._status usage
- make Scheduled==4 to allow bitwise operations
- unfold become(status) into three methods for better inlining
- optimize patterns in setAsIdle away: table switch is probably slower
  than a single conditional
- fix LoggingReceiveSpec glitch wrt. async stop()
2011-10-04 19:33:06 +02:00
Viktor Klang
4df9d621bb Fixing DispatcherActorSpec timeout 2011-10-04 16:35:34 +02:00
Viktor Klang
d000a51e92 Removing the AtomicInteger in Mailbox and implementing it as a volatile int + AtomicIntegerFieldUpdater in AbstractMailbox.java 2011-10-04 15:22:41 +02:00
Jonas Bonér
db8a20ea37 Changed all 'def foo(): Unit = { .. }' to 'def foo() { .. }' 2011-09-27 17:41:02 +02:00
Jonas Bonér
978cbe4437 Change the package name of all classes in remote module to 'akka.remote'.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-20 22:08:38 +02:00
Viktor Klang
bbb79d8e0d Start removed but cluster is broken 2011-09-08 11:02:17 +02:00
Jonas Bonér
5e290ec393 Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-29 14:26:24 +02:00
Jonas Bonér
66f339e202 Moved all 'akka.remote' to 'akka.cluster', no more 'remote' package.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-29 11:44:33 +02:00
Peter Veentjer
ee4d241ceb Use RoutedProps to configure Routing (local and remote). Ticket #1060 2011-08-27 08:10:25 +03:00
Viktor Klang
04729bcbc3 Renaming sendOneWay to tell, closing ticket #1072 2011-08-01 17:07:12 +02:00
Jonas Bonér
6c6089e081 Misc fixes everywhere; deployment, serialization etc. 2011-05-16 09:47:23 +02:00
ticktock
b96eca5868 change the type of the handler function, and go down the rabbit hole a bit. Add a Procedure2[T1,T2] to the Java API, and add JavaEventHandler that gives access from java to the EventHandler, add docs for configuring the handler in declarative Supervision for Scala and Java. 2011-04-14 18:59:51 -07:00
Jonas Bonér
3827a895b8 Added PoisonPill and Kill for UntypedActor 2011-04-05 17:25:05 +02:00
Viktor Klang
407b631462 Embedding the Uuid lib, deleting it from the embedded repo and dropping the jsr166z.jar 2011-03-02 16:34:21 +01:00
Viktor Klang
ad6498f3e1 Adding Java API for ReceiveTimeout 2011-02-03 14:37:08 +01:00
Viktor Klang
dbe6f203b3 Removing ActorRegistry object, UntypedActor object, introducing akka.actor.Actors for the Java API 2011-01-04 13:24:28 +01:00
Viktor Klang
3f507fb7ca Initial UUID migration 2010-08-31 19:12:14 +02:00
Viktor Klang
bd13afdfd0 Fixing master 2010-08-30 13:17:58 +02:00