Beamable SDK
|
Serializable batch. This is a specialized BatchContainer which is JSON Serializable All elements T added to it must be JSON Serializable More...
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. | |
Serializable batch. This is a specialized BatchContainer which is JSON Serializable All elements T added to it must be JSON Serializable
T | : | class | |
T | : | JsonSerializable.ISerializable |
|
inline |
Initializes a new instance of the SerializableBatch<T> class.
|
inline |
Serialize the batch back and forth from JSON
s | S. |
Implements Beamable.Serialization.JsonSerializable.ISerializable.