Photon Quantum 3.0.0

Public Member Functions | Properties | List of all members
Photon.Deterministic.IDeterministicCommandPool Interface Reference

Command pool interface. More...

Inheritance diagram for Photon.Deterministic.IDeterministicCommandPool:
Photon.Deterministic.DeterministicCommandPool< T >

Public Member Functions

DeterministicCommand Acquire ()
 Get from pool or create a new instance of the CommandType. More...
 
bool Release (DeterministicCommand cmd)
 Return a command to the pool. More...
 

Properties

Type CommandType [get]
 The type of commands pooled. More...
 

Detailed Description

Command pool interface.

Member Function Documentation

◆ Acquire()

DeterministicCommand Photon.Deterministic.IDeterministicCommandPool.Acquire ( )

Get from pool or create a new instance of the CommandType.

Returns

Implemented in Photon.Deterministic.DeterministicCommandPool< T >.

◆ Release()

bool Photon.Deterministic.IDeterministicCommandPool.Release ( DeterministicCommand  cmd)

Return a command to the pool.

Parameters
cmdCommand to return to the pool.
Returns
true if command has been returned to the pool

Implemented in Photon.Deterministic.DeterministicCommandPool< T >.

Property Documentation

◆ CommandType

Type Photon.Deterministic.IDeterministicCommandPool.CommandType
get

The type of commands pooled.