SerialisableObjectPoolT Methods |
[This is preliminary documentation and is subject to change.]
The SerialisableObjectPoolT generic type exposes the following members.
Name | Description | |
---|---|---|
Acquire |
Acquires an object from the pool.
| |
Clear |
Clears the pool, emptying it of all pooled objects.
| |
Contains |
Determines whether an instance is in the pool.
| |
Equals | (Inherited from Object.) | |
Fill |
Fills the pool, populating it with pooled objects until it reaches the maximum pool size.
| |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetItems |
Gets a list of items currently contained by the pool, and stores them in the specified ListT.
| |
GetObjectFactory |
Gets a function used to create new instances of the pooled type.
By default, this method uses the public parameterless constructor of type T.
This method should be overridden in a subclass if different behaviour is required.
| |
GetType | (Inherited from Object.) | |
Initialise |
Initialises the pool, populating it with objects and making it ready for use.
| |
Initialise(Boolean) |
Initialises the pool, making it ready for use, and optionally populating it with objects.
| |
MemberwiseClone | (Inherited from Object.) | |
OnAfterDeserialize |
Performs actions after the object has been deserialised.
| |
OnBeforeSerialize |
Performs actions prior to the object being serialised.
| |
OnCanAcquireChanged |
Raises the CanAcquireChanged event.
| |
OnCountChanged |
Raises the CountChanged event.
| |
OnInitialised |
Raises the Initialised event.
| |
OnObjectAcquired |
Raises the ObjectAcquired event.
| |
OnObjectDestroyed |
Raises the ObjectDestroyed event.
| |
OnObjectInstantiated |
Raises the ObjectInstantiated event.
| |
OnObjectReleased |
Raises the ObjectReleased event.
| |
Release |
Releases an object back to the pool.
| |
ReleaseInternal |
Releases an object back to the pool.
| |
Remove |
Removes the specified instance from the pool.
| |
SetSize |
Sets the number of objects contained by the pool, either destroying excess pooled objects, or instantiating new ones.
| |
ToString | (Inherited from Object.) | |
TryAcquire |
Acquires an object from the pool.
|