C# Class Fan.Sys.Actor

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

Public Methods

Method 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

Protected Methods

Method Description
receive ( object msg ) : object

Private Methods

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

Method Details

@typeof() public method

public @typeof ( ) : Type
return Type

Actor() public method

public Actor ( ) : System
return System

_kill() public method

public _kill ( ) : void
return void

_work() public method

public _work ( ) : void
return void

locals() public static method

public static locals ( ) : Map
return Map

make() public static method

public static make ( ActorPool pool ) : Actor
pool ActorPool
return Actor

make() public static method

public static make ( ActorPool pool, Func receive ) : Actor
pool ActorPool
receive Func
return Actor

makeCoalescing() public static method

public static makeCoalescing ( ActorPool pool, Func k, Func c ) : Actor
pool ActorPool
k Func
c Func
return Actor

makeCoalescing() public static method

public static makeCoalescing ( ActorPool pool, Func k, Func c, Func r ) : Actor
pool ActorPool
k Func
c Func
r Func
return Actor

makeCoalescing_() public static method

public static makeCoalescing_ ( Actor self, ActorPool pool, Func k, Func c ) : void
self Actor
pool ActorPool
k Func
c Func
return void

makeCoalescing_() public static method

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

make_() public static method

public static make_ ( Actor self, ActorPool pool ) : void
self Actor
pool ActorPool
return void

make_() public static method

public static make_ ( Actor self, ActorPool pool, Func receive ) : void
self Actor
pool ActorPool
receive Func
return void

pool() public method

public pool ( ) : ActorPool
return ActorPool

receive() protected method

protected receive ( object msg ) : object
msg object
return object

send() public method

public send ( object msg ) : Future
msg object
return Future

sendLater() public method

public sendLater ( Duration d, object msg ) : Future
d Duration
msg object
return Future

sendWhenDone() public method

public sendWhenDone ( Future f, object msg ) : Future
f Future
msg object
return Future

sleep() public static method

public static sleep ( Duration duration ) : void
duration Duration
return void