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
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
StartMonitorThreads ( ) : void
StopMonitorThreads ( ) : void

Method Details

AllowReadCheck() public méthode

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
Résultat bool

CheckConnection() public méthode

public CheckConnection ( object state ) : void
state object
Résultat void

Dispose() protected méthode

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

InactivityMonitor() public méthode

Constructor or the Inactivity Monitor
public InactivityMonitor ( ITransport next ) : System
next ITransport
Résultat System

OnCommand() protected méthode

protected OnCommand ( ITransport sender, Command command ) : void
sender ITransport
command Command
Résultat void

OnException() protected méthode

protected OnException ( ITransport sender, Exception command ) : void
sender ITransport
command System.Exception
Résultat void

Oneway() public méthode

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

ReadCheck() public méthode

public ReadCheck ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

WriteCheck() public méthode

Check the write to the broker
public WriteCheck ( ) : void
Résultat void