C# Class Apache.NMS.ActiveMQ.Transport.Mock.MockTransport

Transport used for testing, mimics the behaviour of a normal Transport and allows messages to be sent and received
Inheritance: ITransport
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Méthodes publiques

Méthode Description
AsyncRequest ( Command command ) : FutureResponse
Dispose ( ) : void
InjectCommand ( Command command ) : void

Injects a Command into the Transports inbound message queue, the Commands in the inbound Queue are dispatched to the registered CommnadHandler instance for processing, this simulates receiving a message from an external source, e.g. receiving a new message from the Broker.

MockTransport ( Uri uri )
Narrow ( Type type ) : Object
Oneway ( Command command ) : void
Request ( Command command ) : Response
Request ( Command command, System.TimeSpan timeout ) : Response
Start ( ) : void
Stop ( ) : void
UpdateURIs ( bool rebalance, Uri updatedURIs ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AsyncRequest() public méthode

public AsyncRequest ( Command command ) : FutureResponse
command Command
Résultat FutureResponse

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InjectCommand() public méthode

Injects a Command into the Transports inbound message queue, the Commands in the inbound Queue are dispatched to the registered CommnadHandler instance for processing, this simulates receiving a message from an external source, e.g. receiving a new message from the Broker.
public InjectCommand ( Command command ) : void
command Command /// A ///
Résultat void

MockTransport() public méthode

public MockTransport ( Uri uri )
uri System.Uri

Narrow() public méthode

public Narrow ( Type type ) : Object
type System.Type
Résultat Object

Oneway() public méthode

public Oneway ( Command command ) : void
command Command
Résultat void

Request() public méthode

public Request ( Command command ) : Response
command Command
Résultat Apache.NMS.ActiveMQ.Commands.Response

Request() public méthode

public Request ( Command command, System.TimeSpan timeout ) : Response
command Command
timeout System.TimeSpan
Résultat Apache.NMS.ActiveMQ.Commands.Response

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

UpdateURIs() public méthode

public UpdateURIs ( bool rebalance, Uri updatedURIs ) : void
rebalance bool
updatedURIs System.Uri
Résultat void