C# 클래스 Disruptor.PhasedBackoffWaitStrategy

Phased wait strategy for waiting EventProcessor s on a barrier.

This strategy can be used when throughput and low-latency are not as important as CPU resource. Spins, then yields, then blocks on the configured BlockingStrategy.

상속: IWaitStrategy
파일 보기 프로젝트 열기: disruptor-net/Disruptor-net

공개 메소드들

메소드 설명
PhasedBackoffWaitStrategy ( System.TimeSpan spinTimeout, System.TimeSpan yieldTimeout, IWaitStrategy fallbackStrategy ) : System
SignalAllWhenBlocking ( ) : void

IWaitStrategy.SignalAllWhenBlocking

WaitFor ( long sequence, Sequence cursor, ISequence dependentSequence, ISequenceBarrier barrier ) : long

IWaitStrategy.WaitFor

WithLock ( System.TimeSpan spinTimeout, System.TimeSpan yieldTimeout ) : PhasedBackoffWaitStrategy

Block with wait/notifyAll semantics

WithSleep ( System.TimeSpan spinTimeout, System.TimeSpan yieldTimeout ) : PhasedBackoffWaitStrategy

Block by sleeping in a loop

비공개 메소드들

메소드 설명
GetSystemTimePreciseAsFileTime ( long &filetime ) : void
GetSystemTimeTicks ( ) : long
PhasedBackoffWaitStrategy ( ) : System

메소드 상세

PhasedBackoffWaitStrategy() 공개 메소드

public PhasedBackoffWaitStrategy ( System.TimeSpan spinTimeout, System.TimeSpan yieldTimeout, IWaitStrategy fallbackStrategy ) : System
spinTimeout System.TimeSpan
yieldTimeout System.TimeSpan
fallbackStrategy IWaitStrategy
리턴 System

SignalAllWhenBlocking() 공개 메소드

IWaitStrategy.SignalAllWhenBlocking
public SignalAllWhenBlocking ( ) : void
리턴 void

WaitFor() 공개 메소드

IWaitStrategy.WaitFor
public WaitFor ( long sequence, Sequence cursor, ISequence dependentSequence, ISequenceBarrier barrier ) : long
sequence long
cursor Sequence
dependentSequence ISequence
barrier ISequenceBarrier
리턴 long

WithLock() 공개 정적인 메소드

Block with wait/notifyAll semantics
public static WithLock ( System.TimeSpan spinTimeout, System.TimeSpan yieldTimeout ) : PhasedBackoffWaitStrategy
spinTimeout System.TimeSpan
yieldTimeout System.TimeSpan
리턴 PhasedBackoffWaitStrategy

WithSleep() 공개 정적인 메소드

Block by sleeping in a loop
public static WithSleep ( System.TimeSpan spinTimeout, System.TimeSpan yieldTimeout ) : PhasedBackoffWaitStrategy
spinTimeout System.TimeSpan
yieldTimeout System.TimeSpan
리턴 PhasedBackoffWaitStrategy