Beamable SDK
Public Member Functions | Protected Attributes | Properties | Events | List of all members
Beamable.Api.Analytics.Batch.BatchContainer< T > Class Template Reference

Batch container. This is a basic batch container. More...

Inheritance diagram for Beamable.Api.Analytics.Batch.BatchContainer< T >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.Analytics.Batch.BatchContainer< T >:
Collaboration graph
[legend]

Public Member Functions

 BatchContainer (int batchMaxSize, double batchTimeoutSeconds)
 Initializes a new instance of the BatchContainer<T> class. More...
 
virtual void Add (T item)
 Add the specified item to the batch. More...
 
virtual void Expire ()
 Expire this batch. More...
 

Protected Attributes

long _expiresTimestamp
 
int _capacity
 
List< T > _items
 

Properties

bool IsExpired [getprotected set]
 Gets a value indicating whether this batch is expired. More...
 
long ExpiresTimestamp [getprotected set]
 Gets the expires (unix) timestamp. More...
 
int Capacity [get]
 Gets the batch's max capacity before expiration. More...
 
List< T > Items [getprotected set]
 Gets or sets the items in this batch. More...
 
int Count [get]
 Gets the count of elements in the batch. More...
 
- Properties inherited from Beamable.Api.Analytics.Batch.IBatchContainer< T >
bool IsExpired [get]
 Gets a value indicating whether this batch is expired. More...
 
long ExpiresTimestamp [get]
 Gets the expires (unix) timestamp. More...
 
int Capacity [get]
 Gets the batch's max capacity before expiration. More...
 
int Count [get]
 Gets the count of elements in the batch. More...
 

Events

Action< List< T > > OnExpired
 Occurs when the batch expires.
 
- Events inherited from Beamable.Api.Analytics.Batch.IBatchContainer< T >
Action< List< T > > OnExpired
 Occurs when the batch expires.
 

Detailed Description

Batch container. This is a basic batch container.

Constructor & Destructor Documentation

◆ BatchContainer()

Beamable.Api.Analytics.Batch.BatchContainer< T >.BatchContainer ( int  batchMaxSize,
double  batchTimeoutSeconds 
)
inline

Initializes a new instance of the BatchContainer<T> class.

Parameters
batchMaxSizeBatch max capacity threshold before expiration.
batchTimeoutSecondsBatch timeout seconds before expiration.

Member Function Documentation

◆ Add()

virtual void Beamable.Api.Analytics.Batch.BatchContainer< T >.Add ( item)
inlinevirtual

Add the specified item to the batch.

Parameters
itemItem.

Implements Beamable.Api.Analytics.Batch.IBatchContainer< T >.

◆ Expire()

virtual void Beamable.Api.Analytics.Batch.BatchContainer< T >.Expire ( )
inlinevirtual

Expire this batch.

Implements Beamable.Api.Analytics.Batch.IBatchContainer< T >.

Property Documentation

◆ Capacity

Gets the batch's max capacity before expiration.

The capacity.

◆ Count

Gets the count of elements in the batch.

The count.

◆ ExpiresTimestamp

long Beamable.Api.Analytics.Batch.BatchContainer< T >.ExpiresTimestamp
getprotected set

Gets the expires (unix) timestamp.

The expires timestamp.

◆ IsExpired

bool Beamable.Api.Analytics.Batch.BatchContainer< T >.IsExpired
getprotected set

Gets a value indicating whether this batch is expired.

true

false

◆ Items

List<T> Beamable.Api.Analytics.Batch.BatchContainer< T >.Items
getprotected set

Gets or sets the items in this batch.

The items.


The documentation for this class was generated from the following file: