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
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

공개 메소드들

메소드 설명
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