@Nonnull public class StreamEvent extends StreamEventData
| Constructor and Description |
|---|
StreamEvent()
Creates an instance with empty body and empty headers.
|
StreamEvent(ByteBuffer body)
Creates an instance with the given body and empty headers.
|
StreamEvent(Map<String,String> headers,
ByteBuffer body)
Creates an instance with the given headers and body and current time as the event timestamp.
|
StreamEvent(Map<String,String> headers,
ByteBuffer body,
long timestamp)
Creates an instance with the given headers, body and timestamp.
|
StreamEvent(StreamEvent event)
Creates an instance that copies from the another
StreamEvent. |
StreamEvent(StreamEventData data,
long timestamp)
Creates an instance with the given
StreamEventData and timestamp. |
| Modifier and Type | Method and Description |
|---|---|
long |
getTimestamp() |
getBody, getHeaderspublic StreamEvent()
public StreamEvent(ByteBuffer body)
public StreamEvent(Map<String,String> headers, ByteBuffer body)
public StreamEvent(StreamEventData data, long timestamp)
StreamEventData and timestamp.public StreamEvent(StreamEvent event)
StreamEvent.public StreamEvent(Map<String,String> headers, ByteBuffer body, long timestamp)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.