C# Class Mycroft.Dispatcher

Inheritance: ICommandable
Show file Open project: rit-sse-mycroft/core Class Usage Examples

Public Methods

Method 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

Method Description
HandleNewClientConnection ( CommandConnection connection ) : void

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

Method Details

Dispatcher() public method

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

Enqueue() public method

public Enqueue ( Command cmd ) : void
cmd Mycroft.Cmd.Command
return void

Issue() public method

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

PreemptQueue() public method

public PreemptQueue ( Command cmd ) : void
cmd Mycroft.Cmd.Command
return void

Run() public method

public Run ( ) : void
return void