C# Class Mycroft.Dispatcher

Inheritance: ICommandable
Afficher le fichier Open project: rit-sse-mycroft/core Class Usage Examples

Méthodes publiques

Méthode Description
Dispatcher ( TcpServer server, Registry registry, MessageArchive messageArchive ) : System
Enqueue ( Command cmd ) : void
Issue ( Command command ) : void

Applies a command to the registry

PreemptQueue ( Command cmd ) : void
Run ( ) : void

Private Methods

Méthode Description
HandleNewClientConnection ( CommandConnection connection ) : void

Put a newly connected app in its own thread in the app thread pool

Method Details

Dispatcher() public méthode

public Dispatcher ( TcpServer server, Registry registry, MessageArchive messageArchive ) : System
server Mycroft.Server.TcpServer
registry Mycroft.App.Registry
messageArchive Mycroft.Cmd.Msg.MessageArchive
Résultat System

Enqueue() public méthode

public Enqueue ( Command cmd ) : void
cmd Mycroft.Cmd.Command
Résultat void

Issue() public méthode

Applies a command to the registry
public Issue ( Command command ) : void
command Mycroft.Cmd.Command
Résultat void

PreemptQueue() public méthode

public PreemptQueue ( Command cmd ) : void
cmd Mycroft.Cmd.Command
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void