com.gilt.gfc.kinesis.consumer

KinesisConsumerConfig

trait KinesisConsumerConfig extends BaseConfig with Loggable

Configuration for access around a Kinesis Stream.

There are some (arguably) reasonable defaults here.

Linear Supertypes
Loggable, BaseConfig, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KinesisConsumerConfig
  2. Loggable
  3. BaseConfig
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def appName: String

    Name of the Amazon Kinesis application

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def awsClientConfig: Option[ClientConfiguration]

    Allow for customised low level configuration of the Amazon AWS Client.

    Allow for customised low level configuration of the Amazon AWS Client.

    Note, specifying a value here may override specified other configurations.

    returns

    Default is to use the default AWS configuration - this is likely a reasonable value in most cases.

    Definition Classes
    BaseConfig
  6. def awsCredentialsProvider: AWSCredentialsProvider

    Get the AWS CredentialsProvider for Kinesis, etc., access.

    Get the AWS CredentialsProvider for Kinesis, etc., access.

    Defaults to com.amazonaws.auth.DefaultAWSCredentialsProviderChain

    returns

    Definition Classes
    BaseConfig
  7. def checkpointFailBackoff: FiniteDuration

    How long to backoff after a communication, etc., error issuing a Checkpoint on a stream/shard, before automatically retrying.

    How long to backoff after a communication, etc., error issuing a Checkpoint on a stream/shard, before automatically retrying.

    Defaults to 30 seconds.

    returns

  8. def checkpointFailRetryCount: Int

    How often to retry a checkpoint, on failure, before completely failing.

    How often to retry a checkpoint, on failure, before completely failing.

    Defaults to 3 attempts.

    returns

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def createStreamConfiguration(streamName: String): KinesisClientLibConfiguration

    Create a Kinesis Client Lib Configuration.

    Create a Kinesis Client Lib Configuration. This is used internally when configuring the Java Kinesis client connections.

    The consumer associated with this confguration will be identified by s"$appName-$streamName" (this includes the DynamoDB table, etc.)

    streamName
    returns

  11. def debug(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  12. def debug(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  13. def dynamoOverrideAwsCredentialsProvider: Option[AWSCredentialsProvider]

    Allow for overriding the awsCredentialsProvider for connection to Dynamo.

    Allow for overriding the awsCredentialsProvider for connection to Dynamo.

    This allows the Kinesis stream and lease/checkpoint DynamoDB table to exist in different accounts, etc.

    Defaults to None

    returns

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def error(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  17. def error(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  18. def error(ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  19. def fatal(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  20. def fatal(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  21. def fatal(ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. def idleTimeBetweenReads: FiniteDuration

    Idle time between calls to fetch data from Kinesis

    Idle time between calls to fetch data from Kinesis

    returns

    defaults to 10 seconds

  26. def info(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  27. def info(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  28. def initialPositionInStream: InitialPositionInStream

    One of LATEST or TRIM_HORIZON.

    One of LATEST or TRIM_HORIZON. The Amazon Kinesis Client Library will start fetching records from this position when the application starts up if there are no checkpoints. If there are checkpoints, we will process records from the checkpoint position.

    returns

    defaults to TRIM_HORIZON

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def kinesisEndpoint: Option[String]

    Optionally explicitly define the endpoint to be used for Kinesis.

    Optionally explicitly define the endpoint to be used for Kinesis.

    If specified, this setting will be used to configure the Amazon Kinesis client to read from setting, overwriting the configured (as per regionName) region name (but only for Kinesis - the DynamoDB and CloudWatch will still use the configured region name.)

    Defaults to None

    returns

    Definition Classes
    KinesisConsumerConfigBaseConfig
  31. def leaseFailoverTime: FiniteDuration

    Lease duration (leases not renewed within this period will be claimed by others)

    Lease duration (leases not renewed within this period will be claimed by others)

    returns

    defaults to 30 seconds

  32. def maxBatchSize: Int

    Maximum number of records in a batch.

    Maximum number of records in a batch.

    returns

    defaults to 1000

  33. def metricsBufferTime: FiniteDuration

    Metrics are buffered for at most this long before publishing to CloudWatch

    Metrics are buffered for at most this long before publishing to CloudWatch

    returns

    defaults to 20 seconds

  34. def metricsMaxQueueSize: Int

    Max number of metrics to buffer before publishing to CloudWatch

    Max number of metrics to buffer before publishing to CloudWatch

    returns

    defaults to 1000

  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def parentShardPollInterval: FiniteDuration

    Wait for this long between polls to check if parent shards are done

    Wait for this long between polls to check if parent shards are done

    returns

    defaults to 20 seconds

  39. def processAllEmptyBatches: Boolean

    Whether every empty batch should be passed to the application.

    Whether every empty batch should be passed to the application.

    The underlying client effectively polls the kinesis stream server periodically - when there are no records present to be passed to the application this is effectively an empty batch - by default not all these get passed to the application.

    Note, in the case where an application does not checkpoint every batch, empty batches may still be passed to the application, even if this specifies false - however, in that case, empty batches will only be passed when there has been records passed since the last checkpoint - if no records have been passed since last checkpoint then no empty batches will be passed on.

    It is not expected, or necessary, to configure this to true - however, it may be useful for certain types of applications to process

    Defaults to false

    returns

  40. def regionName: String

    Specify the Amazon region name to be used.

    Specify the Amazon region name to be used.

    Defaults to "us-east-1"

    returns

    Definition Classes
    BaseConfig
  41. def shardSyncInterval: FiniteDuration

    Time between tasks to sync leases and Kinesis shards

    Time between tasks to sync leases and Kinesis shards

    returns

    defaults to 1 minute

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def taskBackoffTime: FiniteDuration

    Backoff period when tasks encounter an exception

    Backoff period when tasks encounter an exception

    returns

    defaults to 20 seconds

  44. def toString(): String

    Definition Classes
    AnyRef → Any
  45. def trace(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  46. def trace(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  47. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. def warn(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  51. def warn(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  52. def workerId: String

    Used to identify different worker processes - needs to be different for each instance, not just application.

    Used to identify different worker processes - needs to be different for each instance, not just application.

    This value is logged (INFO) when a configuration for a stream is created - this is useful to assist inspection of the contents of the associated dynamoDB table.

    Defaults to the string value of a random UUID.

    returns

Inherited from Loggable

Inherited from BaseConfig

Inherited from AnyRef

Inherited from Any

Ungrouped