C# 클래스 Apache.NMS.ActiveMQ.Connection

Represents a connection with a message broker
상속: IConnection
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddSession void
AsyncCallExceptionListener void
AsyncOnExceptionHandler void
CheckConnected void
DisposeOf void
MarkTransportFailed void
OnAsyncException void
OnException void
OnSessionException void
OnTransportException void
RemoveSession void
SignalInterruptionProcessingComplete void
SignalInterruptionProcessingNeeded void
TransportInterruptionProcessingComplete void
WaitForTransportInterruptionProcessingToComplete void
addDispatcher void
addProducer void
removeDispatcher void
removeProducer void

공개 메소드들

메소드 설명
Close ( ) : void
Connection ( Uri connectionUri, ITransport transport, IdGenerator clientIdGenerator ) : System
CreateLocalTransactionId ( ) : LocalTransactionId

Creates a new local transaction ID

CreateSession ( ) : ISession

Creates a new session to work on this connection

CreateSession ( AcknowledgementMode sessionAcknowledgementMode ) : ISession

Creates a new session to work on this connection

CreateTemporaryDestination ( bool topic ) : ActiveMQTempDestination
DeleteDestination ( IDestination destination ) : void
DeleteTemporaryDestination ( IDestination destination ) : void
Dispose ( ) : void
Oneway ( Command command ) : void
Start ( ) : void

Starts asynchronous message delivery of incoming messages for this connection. Synchronous delivery is unaffected.

Stop ( ) : void

Temporarily stop asynchronous delivery of inbound messages for this connection. The sending of outbound messages is unaffected.

SyncRequest ( Command command ) : Response

Performs a synchronous request-response with the broker

SyncRequest ( Command command, System.TimeSpan requestTimeout ) : Response

보호된 메소드들

메소드 설명
CreateAtiveMQSession ( AcknowledgementMode ackMode ) : Session
CreateTemporaryDestination ( ActiveMQDestination tempDestination ) : void
DispatchMessage ( MessageDispatch dispatch ) : void
Dispose ( bool disposing ) : void
OnCommand ( ITransport commandTransport, Command command ) : void

Handle incoming commands

OnKeepAliveCommand ( ITransport commandTransport, KeepAliveInfo info ) : void
OnTransportInterrupted ( ITransport sender ) : void
OnTransportResumed ( ITransport sender ) : void

비공개 메소드들

메소드 설명
AddSession ( Session session ) : void
AsyncCallExceptionListener ( object error ) : void
AsyncOnExceptionHandler ( object error ) : void
CheckConnected ( ) : void
DisposeOf ( DataStructure objectId ) : void
MarkTransportFailed ( Exception error ) : void
OnAsyncException ( Exception error ) : void
OnException ( Exception error ) : void
OnSessionException ( Session sender, Exception exception ) : void
OnTransportException ( ITransport source, Exception cause ) : void
RemoveSession ( Session session ) : void
SignalInterruptionProcessingComplete ( ) : void
SignalInterruptionProcessingNeeded ( ) : void
TransportInterruptionProcessingComplete ( ) : void
WaitForTransportInterruptionProcessingToComplete ( ) : void
addDispatcher ( ConsumerId id, IDispatcher dispatcher ) : void
addProducer ( ProducerId id, MessageProducer producer ) : void
removeDispatcher ( ConsumerId id ) : void
removeProducer ( ProducerId id ) : void

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connection() 공개 메소드

public Connection ( Uri connectionUri, ITransport transport, IdGenerator clientIdGenerator ) : System
connectionUri System.Uri
transport ITransport
clientIdGenerator Apache.NMS.ActiveMQ.Util.IdGenerator
리턴 System

CreateAtiveMQSession() 보호된 메소드

protected CreateAtiveMQSession ( AcknowledgementMode ackMode ) : Session
ackMode AcknowledgementMode
리턴 Session

CreateLocalTransactionId() 공개 메소드

Creates a new local transaction ID
public CreateLocalTransactionId ( ) : LocalTransactionId
리턴 Apache.NMS.ActiveMQ.Commands.LocalTransactionId

CreateSession() 공개 메소드

Creates a new session to work on this connection
public CreateSession ( ) : ISession
리턴 ISession

CreateSession() 공개 메소드

Creates a new session to work on this connection
public CreateSession ( AcknowledgementMode sessionAcknowledgementMode ) : ISession
sessionAcknowledgementMode AcknowledgementMode
리턴 ISession

CreateTemporaryDestination() 공개 메소드

public CreateTemporaryDestination ( bool topic ) : ActiveMQTempDestination
topic bool
리턴 Apache.NMS.ActiveMQ.Commands.ActiveMQTempDestination

CreateTemporaryDestination() 보호된 메소드

protected CreateTemporaryDestination ( ActiveMQDestination tempDestination ) : void
tempDestination Apache.NMS.ActiveMQ.Commands.ActiveMQDestination
리턴 void

DeleteDestination() 공개 메소드

public DeleteDestination ( IDestination destination ) : void
destination IDestination
리턴 void

DeleteTemporaryDestination() 공개 메소드

public DeleteTemporaryDestination ( IDestination destination ) : void
destination IDestination
리턴 void

DispatchMessage() 보호된 메소드

protected DispatchMessage ( MessageDispatch dispatch ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

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

OnCommand() 보호된 메소드

Handle incoming commands
protected OnCommand ( ITransport commandTransport, Command command ) : void
commandTransport ITransport An ITransport
command Command A Command
리턴 void

OnKeepAliveCommand() 보호된 메소드

protected OnKeepAliveCommand ( ITransport commandTransport, KeepAliveInfo info ) : void
commandTransport ITransport
info Apache.NMS.ActiveMQ.Commands.KeepAliveInfo
리턴 void

OnTransportInterrupted() 보호된 메소드

protected OnTransportInterrupted ( ITransport sender ) : void
sender ITransport
리턴 void

OnTransportResumed() 보호된 메소드

protected OnTransportResumed ( ITransport sender ) : void
sender ITransport
리턴 void

Oneway() 공개 메소드

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

Start() 공개 메소드

Starts asynchronous message delivery of incoming messages for this connection. Synchronous delivery is unaffected.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Temporarily stop asynchronous delivery of inbound messages for this connection. The sending of outbound messages is unaffected.
public Stop ( ) : void
리턴 void

SyncRequest() 공개 메소드

Performs a synchronous request-response with the broker
public SyncRequest ( Command command ) : Response
command Command
리턴 Apache.NMS.ActiveMQ.Commands.Response

SyncRequest() 공개 메소드

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