Beamable SDK
|
Batch container. This is a basic batch container. More...
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 [get, protected set] |
Gets a value indicating whether this batch is expired. More... | |
long | ExpiresTimestamp [get, protected set] |
Gets the expires (unix) timestamp. More... | |
int | Capacity [get] |
Gets the batch's max capacity before expiration. More... | |
List< T > | Items [get, protected 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. More... | |
Events inherited from Beamable.Api.Analytics.Batch.IBatchContainer< T > | |
Action< List< T > > | OnExpired |
Occurs when the batch expires. More... | |
Batch container. This is a basic batch container.
|
inline |
Initializes a new instance of the BatchContainer<T> class.
|
inlinevirtual |
Add the specified item to the batch.
item | Item. |
Implements Beamable.Api.Analytics.Batch.IBatchContainer< T >.
|
inlinevirtual |
Expire this batch.
Implements Beamable.Api.Analytics.Batch.IBatchContainer< T >.
|
get |
Gets the batch's max capacity before expiration.
The capacity.
|
get |
Gets the count of elements in the batch.
The count.
|
getprotected set |
Gets the expires (unix) timestamp.
The expires timestamp.
|
getprotected set |
Gets a value indicating whether this batch is expired.
true
false
|
getprotected set |
Gets or sets the items in this batch.
The items.
Action<List<T> > Beamable.Api.Analytics.Batch.BatchContainer< T >.OnExpired |
Occurs when the batch expires.