Modifier and Type | Class and Description |
---|---|
static class |
PersistableEvent.Builder |
protected static class |
PersistableEvent.HeaderEntry |
protected static class |
PersistableEvent.SpillableString |
Constructor and Description |
---|
PersistableEvent(String channel,
Event event) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBasePayload() |
byte[] |
getBody()
Returns the raw byte array of the data contained in this event.
|
String |
getChannelName() |
protected long |
getEventId() |
List<PersistableEvent.HeaderEntry> |
getHeaderEntries() |
Map<String,String> |
getHeaders()
Returns a map of name-value pairs describing the data stored in the body.
|
byte[] |
getSpillPayload() |
void |
setBody(byte[] body)
Sets the raw byte array of the data contained in this event.
|
protected void |
setEventId(long eventId) |
void |
setHeaders(Map<String,String> headers)
Set the event headers
|
public String getChannelName()
public byte[] getBasePayload()
public byte[] getSpillPayload()
protected void setEventId(long eventId)
protected long getEventId()
public List<PersistableEvent.HeaderEntry> getHeaderEntries()
public void setHeaders(Map<String,String> headers)
Event
setHeaders
in interface Event
headers
- Map of headers to replace the current headers.public byte[] getBody()
Event
public void setBody(byte[] body)
Event
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.