C# Класс 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.
Наследование: TransportFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
OnCommand ( ITransport sender, Command command ) : void
OnException ( ITransport sender, Exception command ) : void

Приватные методы

Метод Описание
StartMonitorThreads ( ) : void
StopMonitorThreads ( ) : void

Описание методов

AllowReadCheck() публичный Метод

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
Результат bool

CheckConnection() публичный Метод

public CheckConnection ( object state ) : void
state object
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

InactivityMonitor() публичный Метод

Constructor or the Inactivity Monitor
public InactivityMonitor ( ITransport next ) : System
next ITransport
Результат System

OnCommand() защищенный Метод

protected OnCommand ( ITransport sender, Command command ) : void
sender ITransport
command Command
Результат void

OnException() защищенный Метод

protected OnException ( ITransport sender, Exception command ) : void
sender ITransport
command System.Exception
Результат void

Oneway() публичный Метод

public Oneway ( Command command ) : void
command Command
Результат void

ReadCheck() публичный Метод

public ReadCheck ( ) : void
Результат void

Stop() публичный Метод

public Stop ( ) : void
Результат void

WriteCheck() публичный Метод

Check the write to the broker
public WriteCheck ( ) : void
Результат void