C# Class Apache.NMS.ActiveMQ.Transport.InactivityMonitor

This class make sure that the connection is still alive, by monitoring the reception of commands from the peer of the transport.
Inheritance: TransportFilter
Datei anzeigen Open project: ThorTech/apache-nms Class Usage Examples

Public Methods

Method Description
AllowReadCheck ( System.TimeSpan elapsed ) : bool

Checks if we should allow the read check(if less than 90% of the read check time elapsed then we dont do the readcheck

CheckConnection ( object state ) : void
InactivityMonitor ( ITransport next ) : System

Constructor or the Inactivity Monitor

Oneway ( Command command ) : void
ReadCheck ( ) : void
Stop ( ) : void
WriteCheck ( ) : void

Check the write to the broker

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnCommand ( ITransport sender, Command command ) : void
OnException ( ITransport sender, Exception command ) : void

Private Methods

Method Description
StartMonitorThreads ( ) : void
StopMonitorThreads ( ) : void

Method Details

AllowReadCheck() public method

Checks if we should allow the read check(if less than 90% of the read check time elapsed then we dont do the readcheck
public AllowReadCheck ( System.TimeSpan elapsed ) : bool
elapsed System.TimeSpan
return bool

CheckConnection() public method

public CheckConnection ( object state ) : void
state object
return void

Dispose() protected method

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

InactivityMonitor() public method

Constructor or the Inactivity Monitor
public InactivityMonitor ( ITransport next ) : System
next ITransport
return System

OnCommand() protected method

protected OnCommand ( ITransport sender, Command command ) : void
sender ITransport
command Command
return void

OnException() protected method

protected OnException ( ITransport sender, Exception command ) : void
sender ITransport
command System.Exception
return void

Oneway() public method

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

ReadCheck() public method

public ReadCheck ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

WriteCheck() public method

Check the write to the broker
public WriteCheck ( ) : void
return void