Beamable SDK
Public Member Functions | List of all members
Beamable.Api.Analytics.Batch.SerializableBatch< T > Class Template Reference

Serializable batch. This is a specialized BatchContainer which is JSON Serializable All elements T added to it must be JSON Serializable More...

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

Public Member Functions

 SerializableBatch (int batchMaxSize, double batchTimeoutSeconds)
 Initializes a new instance of the SerializableBatch<T> class. More...
 
void Serialize (JsonSerializable.IStreamSerializer s)
 Serialize the batch back and forth from JSON More...
 
- Public Member Functions inherited from Beamable.Api.Analytics.Batch.BatchContainer< T >
 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...
 

Additional Inherited Members

- Protected Attributes inherited from Beamable.Api.Analytics.Batch.BatchContainer< T >
long _expiresTimestamp
 
int _capacity
 
List< T > _items
 
- Properties inherited from Beamable.Api.Analytics.Batch.BatchContainer< T >
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 inherited from Beamable.Api.Analytics.Batch.BatchContainer< T >
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

Serializable batch. This is a specialized BatchContainer which is JSON Serializable All elements T added to it must be JSON Serializable

Type Constraints
T :class 
T :JsonSerializable.ISerializable 

Constructor & Destructor Documentation

◆ SerializableBatch()

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

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

Parameters
batchMaxSizeBatch max size.
batchTimeoutSecondsBatch timeout seconds.

Member Function Documentation

◆ Serialize()

Serialize the batch back and forth from JSON

Parameters
sS.

Implements Beamable.Serialization.JsonSerializable.ISerializable.


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