C# Class Apache.NMS.ActiveMQ.Connection

Represents a connection with a message broker
Inheritance: IConnection
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Connection() public méthode

public Connection ( Uri connectionUri, ITransport transport, IdGenerator clientIdGenerator ) : System
connectionUri System.Uri
transport ITransport
clientIdGenerator Apache.NMS.ActiveMQ.Util.IdGenerator
Résultat System

CreateAtiveMQSession() protected méthode

protected CreateAtiveMQSession ( AcknowledgementMode ackMode ) : Session
ackMode AcknowledgementMode
Résultat Session

CreateLocalTransactionId() public méthode

Creates a new local transaction ID
public CreateLocalTransactionId ( ) : LocalTransactionId
Résultat Apache.NMS.ActiveMQ.Commands.LocalTransactionId

CreateSession() public méthode

Creates a new session to work on this connection
public CreateSession ( ) : ISession
Résultat ISession

CreateSession() public méthode

Creates a new session to work on this connection
public CreateSession ( AcknowledgementMode sessionAcknowledgementMode ) : ISession
sessionAcknowledgementMode AcknowledgementMode
Résultat ISession

CreateTemporaryDestination() public méthode

public CreateTemporaryDestination ( bool topic ) : ActiveMQTempDestination
topic bool
Résultat Apache.NMS.ActiveMQ.Commands.ActiveMQTempDestination

CreateTemporaryDestination() protected méthode

protected CreateTemporaryDestination ( ActiveMQDestination tempDestination ) : void
tempDestination Apache.NMS.ActiveMQ.Commands.ActiveMQDestination
Résultat void

DeleteDestination() public méthode

public DeleteDestination ( IDestination destination ) : void
destination IDestination
Résultat void

DeleteTemporaryDestination() public méthode

public DeleteTemporaryDestination ( IDestination destination ) : void
destination IDestination
Résultat void

DispatchMessage() protected méthode

protected DispatchMessage ( MessageDispatch dispatch ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

OnCommand() protected méthode

Handle incoming commands
protected OnCommand ( ITransport commandTransport, Command command ) : void
commandTransport ITransport An ITransport
command Command A Command
Résultat void

OnKeepAliveCommand() protected méthode

protected OnKeepAliveCommand ( ITransport commandTransport, KeepAliveInfo info ) : void
commandTransport ITransport
info Apache.NMS.ActiveMQ.Commands.KeepAliveInfo
Résultat void

OnTransportInterrupted() protected méthode

protected OnTransportInterrupted ( ITransport sender ) : void
sender ITransport
Résultat void

OnTransportResumed() protected méthode

protected OnTransportResumed ( ITransport sender ) : void
sender ITransport
Résultat void

Oneway() public méthode

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

Start() public méthode

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

Stop() public méthode

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

SyncRequest() public méthode

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

SyncRequest() public méthode

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