C# Class Fan.Sys.Actor

Actor is a worker who processes messages asynchronously.
Inheritance: FanObj, Fanx.Util.ThreadPool.Work
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Méthode Description
@typeof ( ) : Type
Actor ( ) : System
_kill ( ) : void
_work ( ) : void
locals ( ) : Map
make ( ActorPool pool ) : Actor
make ( ActorPool pool, Func receive ) : Actor
makeCoalescing ( ActorPool pool, Func k, Func c ) : Actor
makeCoalescing ( ActorPool pool, Func k, Func c, Func r ) : Actor
makeCoalescing_ ( Actor self, ActorPool pool, Func k, Func c ) : void
makeCoalescing_ ( Actor self, ActorPool pool, Func k, Func c, Func r ) : void
make_ ( Actor self, ActorPool pool ) : void
make_ ( Actor self, ActorPool pool, Func receive ) : void
pool ( ) : ActorPool
send ( object msg ) : Future
sendLater ( Duration d, object msg ) : Future
sendWhenDone ( Future f, object msg ) : Future
sleep ( Duration duration ) : void

Méthodes protégées

Méthode Description
receive ( object msg ) : object

Private Methods

Méthode Description
_dispatch ( Future future ) : void
_enqueue ( Future f, bool coalesce ) : Future
_send ( object msg, Duration dur, Future whenDone ) : Future

Method Details

@typeof() public méthode

public @typeof ( ) : Type
Résultat Type

Actor() public méthode

public Actor ( ) : System
Résultat System

_kill() public méthode

public _kill ( ) : void
Résultat void

_work() public méthode

public _work ( ) : void
Résultat void

locals() public static méthode

public static locals ( ) : Map
Résultat Map

make() public static méthode

public static make ( ActorPool pool ) : Actor
pool ActorPool
Résultat Actor

make() public static méthode

public static make ( ActorPool pool, Func receive ) : Actor
pool ActorPool
receive Func
Résultat Actor

makeCoalescing() public static méthode

public static makeCoalescing ( ActorPool pool, Func k, Func c ) : Actor
pool ActorPool
k Func
c Func
Résultat Actor

makeCoalescing() public static méthode

public static makeCoalescing ( ActorPool pool, Func k, Func c, Func r ) : Actor
pool ActorPool
k Func
c Func
r Func
Résultat Actor

makeCoalescing_() public static méthode

public static makeCoalescing_ ( Actor self, ActorPool pool, Func k, Func c ) : void
self Actor
pool ActorPool
k Func
c Func
Résultat void

makeCoalescing_() public static méthode

public static makeCoalescing_ ( Actor self, ActorPool pool, Func k, Func c, Func r ) : void
self Actor
pool ActorPool
k Func
c Func
r Func
Résultat void

make_() public static méthode

public static make_ ( Actor self, ActorPool pool ) : void
self Actor
pool ActorPool
Résultat void

make_() public static méthode

public static make_ ( Actor self, ActorPool pool, Func receive ) : void
self Actor
pool ActorPool
receive Func
Résultat void

pool() public méthode

public pool ( ) : ActorPool
Résultat ActorPool

receive() protected méthode

protected receive ( object msg ) : object
msg object
Résultat object

send() public méthode

public send ( object msg ) : Future
msg object
Résultat Future

sendLater() public méthode

public sendLater ( Duration d, object msg ) : Future
d Duration
msg object
Résultat Future

sendWhenDone() public méthode

public sendWhenDone ( Future f, object msg ) : Future
f Future
msg object
Résultat Future

sleep() public static méthode

public static sleep ( Duration duration ) : void
duration Duration
Résultat void