public class Record extends Object implements Serializable
The unit of data in a delivery stream.
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ByteBuffer |
getData()
The data blob, which is base64-encoded when the blob is serialized.
|
int |
hashCode() |
void |
setData(ByteBuffer data)
The data blob, which is base64-encoded when the blob is serialized.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Record |
withData(ByteBuffer data)
The data blob, which is base64-encoded when the blob is serialized.
|
public ByteBuffer getData()
The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
Constraints:
Length: 0 - 1024000
The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
public void setData(ByteBuffer data)
The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
Constraints:
Length: 0 - 1024000
data
- The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
public Record withData(ByteBuffer data)
The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024000
data
- The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2017. All rights reserved.