Skip to main content

Class Batch

Inheritance
System.Object
Inherited Members
Show
Syntax
public abstract class Batch

Constructors

Batch(Int32)

Declaration
public Batch(int maxPacketSize)
Parameters
TypeNameDescription
System.Int32maxPacketSize

Fields

MESSAGE_LENGTH_SIZE

Declaration
public const int MESSAGE_LENGTH_SIZE = 2

Properties

Created

Declaration
protected abstract bool Created { get; }

Methods

GetBatch()

Declaration
protected abstract byte[] GetBatch()
Returns
TypeDescription
System.Byte[]

GetBatchLength()

Declaration
protected abstract int GetBatchLength()
Returns
TypeDescription
System.Int32

CreateNewBatch()

Declaration
protected abstract void CreateNewBatch()

SendAndReset()

Declaration
protected abstract void SendAndReset()

AddMessage(Byte[], Int32, Int32)

Declaration
public void AddMessage(byte[] message, int offset, int length)
Parameters
TypeNameDescription
System.Byte[]message
System.Int32offset
System.Int32length

Flush()

Declaration
public void Flush()