C# 클래스 BrakePedal.MemoryThrottleRepository

상속: IThrottleRepository
파일 보기 프로젝트 열기: gopangea/BrakePedal

공개 프로퍼티들

프로퍼티 타입 설명
CurrentDate Func

공개 메소드들

메소드 설명
AddOrIncrementWithExpiration ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
CreateLockKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
CreateThrottleKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
LockExists ( IThrottleKey key, BrakePedal.Limiter limiter ) : bool
MemoryThrottleRepository ( ) : System
MemoryThrottleRepository ( ObjectCache cache ) : System
RemoveThrottle ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
SetLock ( IThrottleKey key, BrakePedal.Limiter limiter ) : void

비공개 메소드들

메소드 설명
CreateBaseKeyValues ( IThrottleKey key, BrakePedal.Limiter limiter ) : List
GetUnixTimestamp ( ) : long
TimeSpanToFriendlyString ( System.TimeSpan span ) : string

메소드 상세

AddOrIncrementWithExpiration() 공개 메소드

public AddOrIncrementWithExpiration ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
리턴 void

CreateLockKey() 공개 메소드

public CreateLockKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
key IThrottleKey
limiter BrakePedal.Limiter
리턴 string

CreateThrottleKey() 공개 메소드

public CreateThrottleKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
key IThrottleKey
limiter BrakePedal.Limiter
리턴 string

GetThrottleCount() 공개 메소드

public GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
key IThrottleKey
limiter BrakePedal.Limiter
리턴 long?

LockExists() 공개 메소드

public LockExists ( IThrottleKey key, BrakePedal.Limiter limiter ) : bool
key IThrottleKey
limiter BrakePedal.Limiter
리턴 bool

MemoryThrottleRepository() 공개 메소드

public MemoryThrottleRepository ( ) : System
리턴 System

MemoryThrottleRepository() 공개 메소드

public MemoryThrottleRepository ( ObjectCache cache ) : System
cache ObjectCache
리턴 System

RemoveThrottle() 공개 메소드

public RemoveThrottle ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
리턴 void

SetLock() 공개 메소드

public SetLock ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
리턴 void

프로퍼티 상세

CurrentDate 공개적으로 프로퍼티

public Func CurrentDate
리턴 Func