C# 클래스 Spring.Retry.Retry.Policy.SoftReferenceMapRetryContextCache

Map-based implementation of IRetryContextCache. The map backing the cache of contexts is synchronized and its entries are soft-referenced, so may be garbage collected under pressure. MapRetryContextCache for non-soft referenced version.
상속: IRetryContextCache
파일 보기 프로젝트 열기: spring-projects/spring-net-retry

공개 프로퍼티들

프로퍼티 타입 설명
DEFAULT_CAPACITY int

공개 메소드들

메소드 설명
ContainsKey ( object key ) : bool

The contains key.

Get ( object key ) : IRetryContext

The get.

Put ( object key, IRetryContext context ) : void

The put.

Remove ( object key ) : void

The remove.

SoftReferenceMapRetryContextCache ( ) : System

Initializes a new instance of the SoftReferenceMapRetryContextCache class with default capacity.

SoftReferenceMapRetryContextCache ( int defaultCapacity ) : System

Initializes a new instance of the SoftReferenceMapRetryContextCache class.

메소드 상세

ContainsKey() 공개 메소드

The contains key.
public ContainsKey ( object key ) : bool
key object The key.
리턴 bool

Get() 공개 메소드

The get.
public Get ( object key ) : IRetryContext
key object The key.
리턴 IRetryContext

Put() 공개 메소드

The put.
public Put ( object key, IRetryContext context ) : void
key object The key.
context IRetryContext The context.
리턴 void

Remove() 공개 메소드

The remove.
public Remove ( object key ) : void
key object The key.
리턴 void

SoftReferenceMapRetryContextCache() 공개 메소드

Initializes a new instance of the SoftReferenceMapRetryContextCache class with default capacity.
public SoftReferenceMapRetryContextCache ( ) : System
리턴 System

SoftReferenceMapRetryContextCache() 공개 메소드

Initializes a new instance of the SoftReferenceMapRetryContextCache class.
public SoftReferenceMapRetryContextCache ( int defaultCapacity ) : System
defaultCapacity int The default capacity.
리턴 System

프로퍼티 상세

DEFAULT_CAPACITY 공개적으로 정적으로 프로퍼티

Default value for maximum capacity of the cache. This is set to a reasonably low value (4096) to avoid users inadvertently filling the cache with item keys that are inconsistent.
public static int DEFAULT_CAPACITY
리턴 int