C# Class Apache.NMS.ActiveMQ.Connection

Represents a connection with a message broker
Inheritance: IConnection
ファイルを表示 Open project: ThorTech/apache-nms Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public Close ( ) : void
return void

Connection() public method

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

CreateAtiveMQSession() protected method

protected CreateAtiveMQSession ( AcknowledgementMode ackMode ) : Session
ackMode AcknowledgementMode
return Session

CreateLocalTransactionId() public method

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

CreateSession() public method

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

CreateSession() public method

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

CreateTemporaryDestination() public method

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

CreateTemporaryDestination() protected method

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

DeleteDestination() public method

public DeleteDestination ( IDestination destination ) : void
destination IDestination
return void

DeleteTemporaryDestination() public method

public DeleteTemporaryDestination ( IDestination destination ) : void
destination IDestination
return void

DispatchMessage() protected method

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

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnCommand() protected method

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

OnKeepAliveCommand() protected method

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

OnTransportInterrupted() protected method

protected OnTransportInterrupted ( ITransport sender ) : void
sender ITransport
return void

OnTransportResumed() protected method

protected OnTransportResumed ( ITransport sender ) : void
sender ITransport
return void

Oneway() public method

public Oneway ( Command command ) : void
command Command
return void

Start() public method

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

Stop() public method

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

SyncRequest() public method

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

SyncRequest() public method

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