public class BufferSizeEvent extends Event
The event is sent upstream from the sinks and notifies elements that they should add an additional latency to the timestamps before synchronising against the clock.
The latency is mostly used in live sinks and is always expressed in the time format.
NativeObject.Initializer
defaultInit, LIFECYCLE, ownsHandle
Constructor and Description |
---|
BufferSizeEvent(Format format,
long minsize,
long maxsize,
boolean async)
Creates a new buffersize event.
|
BufferSizeEvent(NativeObject.Initializer init)
This constructor is for internal use only.
|
Modifier and Type | Method and Description |
---|---|
Format |
getFormat()
Gets the format of the buffersize event.
|
long |
getMaximumSize()
Gets the maximum buffer size.
|
long |
getMinimumSize()
Gets the minimum buffer size.
|
boolean |
isAsync()
Gets the preferred thread behaviour.
|
getStructure
disposeNativeHandle, isWritable, makeWritable, ref, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
public BufferSizeEvent(NativeObject.Initializer init)
init
- initialization data.public BufferSizeEvent(Format format, long minsize, long maxsize, boolean async)
The event is sent downstream and notifies elements that they should provide a buffer of the specified dimensions.
When the async flag is set, a thread boundary is preferred.
format
- buffer formatminsize
- minimum buffer sizemaxsize
- maximum buffer sizeasync
- thread behaviorpublic Format getFormat()
public long getMinimumSize()
public long getMaximumSize()
public boolean isAsync()