public final class StreamEvent extends BytesEvent
Title: Structured Data Objects: Stream Event
Description: Defines a Stream Event.
BytesEvent
with a content that can be split into several chunks of the specified size
and then these chunks will be consequentially raised as ChunkEvent
instances.
The event id of the associated ChunkEvent
is assigned automatically to e.chunk.<streamEventId>
(e.g. for StreamEvent
with event id event.stream1
the associated ChunkEvent
will have event id e.chunk.event.stream1
).
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHUNK_DELAY_PROPERTY |
static java.lang.String |
CHUNK_SIZE_PROPERTY |
SEMANTIC_TYPE_NAME
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
long |
getChunkDelay()
Returns a delay (in milliseconds) between successive transfers of data chunks
(i.e.
|
java.lang.String |
getChunkEventId()
Returns an event id of the
ChunkEvent associated with this event. |
int |
getChunkSize()
Returns a size of the data chunk (in bytes) for this stream.
|
void |
setChunkDelay(long chunkDelay)
Sets the specified delay (in milliseconds) between successive transfers of data chunks
(i.e.
|
void |
setChunkSize(int chunkSize)
Sets the specified size the data chunk (in bytes) for this stream.
|
void |
setSkipFullEvent(boolean skipFullEvent)
Sets the specified flag indicating if this event should be skipped after transferring of all data chunks.
|
boolean |
skipFullEvent()
Checks if this event should be skipped after transferring of all data chunks.
|
addAnnotation, clearData, clone, equals, getBytes, getBytesLength, readBoolean, readByte, readBytes, readBytes, readChar, readDouble, readFloat, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, resetData, setBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShort, writeUTF
clearEventProperties, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
canConvertEventProperty, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getDurable, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventGroupId, getEventId, getEventIntProperty, getEventKey, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventSource, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTimestamp, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, hasSuitableAnnotationType, isProtected
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canConvertEventProperty, clearEventProperties, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, isProtected, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getTimestamp
getSerialVersionUID
public static final java.lang.String CHUNK_SIZE_PROPERTY
public static final java.lang.String CHUNK_DELAY_PROPERTY
public java.lang.String getChunkEventId()
ChunkEvent
associated with this event.ChunkEvent
.public int getChunkSize()
0
.public void setChunkSize(int chunkSize)
chunkSize
- the chunk size to be set.public long getChunkDelay()
ChunkEvent
instances).
0
.public void setChunkDelay(long chunkDelay)
ChunkEvent
instances).
public boolean skipFullEvent()
false
.true
if this event should be skipped after transferring of all chunks, false
otherwise.public void setSkipFullEvent(boolean skipFullEvent)
skipFullEvent
- the flag to be set.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.