C# Класс Apache.NMS.ActiveMQ.Connection

Represents a connection with a message broker
Наследование: IConnection
Показать файл Открыть проект Примеры использования класса

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