IObjectPoolFactory

Description

interface Tinman.Core.System.IObjectPoolFactory
<TObject ref>
<TKind val : IEquatable<TKind>>

Extended by

ObjectPoolFactory abstract

Base interface for classes that create objects for a pool.

Public / Methods

Delete


public method Delete → (1)

obj in : TObject own

[not-null]
The object.

The given object is no longer pooled and may be deleted.

Kind


public method Kind → (1)

obj in : TObject

[not-null]
The object.

returns → TKind

The object kind.

Returns the kind of the given object.

New


[OwnerReturn]
public method New → (1)

kind in : TKind

The kind of the object to fetch.

returns → TObject

The newly created object.

Creates a new pooled object.

Return


public method Return → (1)

obj in : TObject

[not-null]
The object that is returned to the pool.

A pooled object is about to be returned to the pool.

Use


[OwnerReturn]
public method Use → (1)

obj in : TObject

[not-null]
The object that is used again.

A pooled object is about to be used again.