C# 클래스 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
상속: ITransport
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

AsyncRequest() 공개 메소드

public AsyncRequest ( Command command ) : FutureResponse
command Command
리턴 FutureResponse

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

InjectCommand() 공개 메소드

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 ///
리턴 void

MockTransport() 공개 메소드

public MockTransport ( Uri uri )
uri System.Uri

Narrow() 공개 메소드

public Narrow ( Type type ) : Object
type System.Type
리턴 Object

Oneway() 공개 메소드

public Oneway ( Command command ) : void
command Command
리턴 void

Request() 공개 메소드

public Request ( Command command ) : Response
command Command
리턴 Apache.NMS.ActiveMQ.Commands.Response

Request() 공개 메소드

public Request ( Command command, System.TimeSpan timeout ) : Response
command Command
timeout System.TimeSpan
리턴 Apache.NMS.ActiveMQ.Commands.Response

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

UpdateURIs() 공개 메소드

public UpdateURIs ( bool rebalance, Uri updatedURIs ) : void
rebalance bool
updatedURIs System.Uri
리턴 void