Commit graph

61 commits

Author SHA1 Message Date
Björn Antonsson
08ef942242 Reformating configuration and examples for PDF (Scala, and leftovers). See #2413 2012-10-01 20:35:46 +02:00
Roland
947cea3a8c more conversion to FiniteDuration, plus fix the build, see #2521
- also remove resetReceiveTimeout and change receiveTimeout() to return
  a Duration (which may be Undefined)
- also move akka.actor.{cell -> dungeon}, because that is
  + an adequate name
  + and does not coincide with the lowercase version of a class name
2012-09-18 18:17:44 +02:00
Roland
35b7a9e338 second round of FiniteDuration business, including cluster fixes
- make Scheduler only accept FiniteDuration, which has quite some
  knock-on effects
2012-09-18 09:58:30 +02:00
Viktor Klang
9d097bcf50 Making it possible/mandatory to signal which ExecutionContext will actually execute something scheduled 2012-08-08 15:57:30 +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
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
2a370520fd Cleaning up the cancellables, null-object pattern ftw 2012-05-21 14:50:49 +02:00
Viktor Klang
26f6c48ae1 HUGE CHANGE - moving behaviorStack into ActorCell 2012-05-21 13:47:48 +02:00
Viktor Klang
5cbcb612b2 Moving the HWT stuff from org.jboss.netty.akka.util to akka.util.internal 2012-05-20 15:56:52 +02:00
Viktor Klang
7da74effe6 Adding overrides on the DefaultScheduler 2012-05-16 16:28:43 +02:00
Viktor Klang
07c9bfe6d7 Making sure that the ContinuousCancellable can never be re-initialized 2012-05-16 16:22:59 +02:00
Viktor Klang
c0cead3aad Cleaning up Scheduler, rewriting ContinuousCancellable 2012-05-16 16:16:31 +02:00
Viktor Klang
ed4bc1cf0b #1508 - Reducing closure wrapping in scheduler 2012-05-10 23:55:11 +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
Heiko Seeberger
8dbfbbe966 closes #2019: Use parentheses for arity-0 methods which are not referentially transparent 2012-04-24 16:38:21 +02:00
Patrik Nordwall
4753f4af02 Remove log warning on reschedule to stopped actor. See #1760 2012-02-01 11:42:27 +01:00
Jonas Bonér
9a7b234ec2 Changed copyright header to Typesafe.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-01-31 13:34:05 +01:00
Viktor Klang
f7a45c0e8f Removing dead imports from akka-actor 2012-01-25 15:38:04 +01:00
Roland
34a0f005b1 Merge branch 'master' into wip-1581-patterns-ask 2012-01-20 19:29:17 +01:00
Viktor Klang
03bc15feb1 #1692 - Adding config option for making the Scheduler daemonic 2012-01-19 20:55:27 +01:00
Roland
1daaee98aa Merge remote-tracking branch 'origin/master' into wip-1581-patterns-ask 2012-01-18 14:20:13 +01:00
Roland
8b14cd683d scaladoc for patterns 2012-01-18 13:26:11 +01:00
Patrik Nordwall
ac886a8660 Moved DefaultScheduler to Scheduler.scala file 2012-01-17 09:34:34 +01:00
Jonas Bonér
ce296b0481 Misc additions to, and rewrites and formatting of, the documentation.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-15 14:26:17 +01:00
Roland
cb85778b12 remove ActorRef.stop()
- replace ActorRef.stop() by ActorRefFactory.stop(child) everywhere
- ActorCell “optimizes” this to remove the child from its childrenRefs
  in order to allow immediate recycling of the name
- the lost soul must have a place, for which the Locker has been
  created, where Davy Jones will happily rebind the soul to his ship
  (i.e. set “parent” to the locker to avoid mem leak) and periodically
  revisit it (.stop(), in case of that being lost in comm failure,
  similar .watch() to re-check liveness)
2011-12-14 00:10:53 +01:00
Viktor Klang
34ddca0fda #1470 - Document Scheduler 2011-12-13 01:44:18 +01:00
Roland
d6fc97c48d introduce akka.actor.creation-timeout to make Jenkins happy
- I had reused akka.actor.timeout for ActorSystem.actorOf calls (which
  “ask” the guardian to create the actor), but 5sec proved too short for
  Jenkins
- CreationTimeout defaults to 30sec now, let’s hope Jenkins is not
  slower than _that_.
2011-12-06 16:36:49 +01:00
Roland
b2a8e4ccae document requirements of our Scheduler service 2011-12-06 09:27:32 +01:00
Patrik Nordwall
1f665ab4c6 Changed signatures of Scheduler for better api of by-name blocks 2011-12-02 17:13:46 +01:00
Henrik Engstrom
e2ad1088b0 Updated the scheduler implementation after feedback; changed Duration(x, timeunit) to more fluent 'x timeunit' and added ScalaDoc 2011-11-23 15:16:46 +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
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
d1ebc1ed06 Added a Cancellable trait to encapsulate any specific scheduler implementations from leaking. Fixes #1286 2011-11-10 11:53:36 +01:00
Henrik Engstrom
896c906d03 Implemented HashedWheelTimer as the default scheduling mechanism in Akka. Fixes #1291 2011-11-10 11:32:26 +01:00
Roland
d1e0f411ef clean up application structure
- introduce common parent for guardian and systemGuardian
- install deathWatch chain to ensure proper shutdown upon guardian’s
  death
- re-install stdout logger before detaching default loggers
- await app termination after running AkkaSpec tests (max 5sec, with
  warning logged if not stopped)
2011-10-28 17:15:10 +02:00
Viktor Klang
379515771b Tidying up some superflous lines of code in Scheduler 2011-10-17 19:31:04 +02:00
Viktor Klang
050411bf3b Making a Java API for Scheduler (JScheduler) and an abstract class Scheduler that extends it, to make the Scheduler pluggable, moving it into AkkaApplication and migrating the code. 2011-10-17 18:35:36 +02:00
Roland
44b94643e5 Merge with Peter's work (i.e. merging master into tame-globals) 2011-10-13 14:17:07 +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
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
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 Veentjer
1b1720d65a ticket #1048 2011-07-25 12:47:43 +03:00
Viktor Klang
321a9e064f Removing Scheduler.shutdown from public API and making the SchedulerSpec clean up after itself instead 2011-07-12 12:17:32 +02:00
Patrik Nordwall
02dbc4cbad Ticket 1005: Changed WeakReference to lookup by uuid 2011-07-12 10:26:34 +02:00
Viktor Klang
c8c12ab56b Fixing ticket #1005 by using WeakReference for LocalActorRefs 2011-07-11 15:21:29 +02:00
Viktor Klang
ac311a32c2 Fixing a visibility problem with Scheduler thread id 2011-07-09 19:17:49 +02:00
Patrik Nordwall
ce3586221c Added description of how to cancel scheduled task 2011-06-29 08:43:51 +02:00
Jonas Bonér
56db84f0a1 Uncommented failing leader election tests 2011-06-23 16:02:35 +02:00
Jonas Bonér
a7311c83e6 Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code 2011-05-18 17:25:30 +02:00