Class BufferingHints
- All Implemented Interfaces:
Serializable
,Cloneable
Describes hints for the buffering to perform before delivering data to the destination. Please note that these options are treated as hints, and therefore Firehose may choose to use different values when it is optimal.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.Buffer incoming data to the specified size, in MBs, before delivering it to the destination.int
hashCode()
void
setIntervalInSeconds
(Integer intervalInSeconds) Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.void
setSizeInMBs
(Integer sizeInMBs) Buffer incoming data to the specified size, in MBs, before delivering it to the destination.toString()
Returns a string representation of this object; useful for testing and debugging.withIntervalInSeconds
(Integer intervalInSeconds) Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.withSizeInMBs
(Integer sizeInMBs) Buffer incoming data to the specified size, in MBs, before delivering it to the destination.
-
Constructor Details
-
BufferingHints
public BufferingHints()
-
-
Method Details
-
setSizeInMBs
Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.
- Parameters:
sizeInMBs
- Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.
-
getSizeInMBs
Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.
- Returns:
- Buffer incoming data to the specified size, in MBs, before
delivering it to the destination. The default value is 5.
We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.
-
withSizeInMBs
Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.
- Parameters:
sizeInMBs
- Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIntervalInSeconds
Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.
- Parameters:
intervalInSeconds
- Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.
-
getIntervalInSeconds
Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.
- Returns:
- Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.
-
withIntervalInSeconds
Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.
- Parameters:
intervalInSeconds
- Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-