public class BinaryMessage extends Object
In general terms we break up a potentially large object like RemoteTransactionEvent into many smaller BinaryMessages. This is so that if they don't all fit on a single Packet we can easily break them up and put them on multiple packets.
Also note that for the Multicast approach a Packet will generally contain many messages each directed to different members of the cluster. So it would be common for many Ack, Resend and Control messages to all be contained in a single packet.
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_BEANDELTA |
static int |
TYPE_BEANIUD |
static int |
TYPE_BEANPATHUPDATE |
static int |
TYPE_INDEX |
static int |
TYPE_INDEX_INVALIDATE |
static int |
TYPE_MSGACK |
static int |
TYPE_MSGCONTROL |
static int |
TYPE_MSGRESEND |
static int |
TYPE_TABLEIUD |
| Constructor and Description |
|---|
BinaryMessage(int bufSize)
Create with an estimated buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getByteArray()
Return all the content as a byte array.
|
DataOutputStream |
getOs()
Return the DataOutputStream to write content to.
|
public static final int TYPE_MSGCONTROL
public static final int TYPE_BEANIUD
public static final int TYPE_TABLEIUD
public static final int TYPE_BEANDELTA
public static final int TYPE_BEANPATHUPDATE
public static final int TYPE_INDEX_INVALIDATE
public static final int TYPE_INDEX
public static final int TYPE_MSGACK
public static final int TYPE_MSGRESEND
public BinaryMessage(int bufSize)
public DataOutputStream getOs()
public byte[] getByteArray()
Copyright © 2014. All Rights Reserved.