com.gilt.gfc.kinesis.consumer

KinesisClientConfiguration

trait KinesisClientConfiguration extends Loggable

Configuration for access around a Kinesis Stream.

There are some (arguably) reasonable defaults here.

Linear Supertypes
Loggable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KinesisClientConfiguration
  2. Loggable
  3. AnyRef
  4. 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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def awsCredentialsProvider: AWSCredentialsProvider

    Get the AWS CredentialsProvider for Kinesis, etc.

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

    Defaults to com.amazonaws.auth.DefaultAWSCredentialsProviderChain

    returns

  8. def checkpointFailBackoff: FiniteDuration

    How long to backoff after a communication, etc.

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

    Defaults to 30 seconds.

    returns

  9. 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

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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

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

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

    Attributes
    protected
    Definition Classes
    Loggable
  14. 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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  26. 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

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

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

    Attributes
    protected
    Definition Classes
    Loggable
  29. 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

  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. 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

  32. 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

  33. def maxBatchSize: Int

    Maximum number of records in a batch.

    Maximum number of records in a batch.

    returns

    defaults to 1000

  34. 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

  35. 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

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

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

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

    Definition Classes
    AnyRef
  39. 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

  40. 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

  41. def regionName: String

    Specify the Amazon region name to be used for each of Kinesis, DynamoDB (for lease table) and CloudWatch metrics.

    Specify the Amazon region name to be used for each of Kinesis, DynamoDB (for lease table) and CloudWatch metrics.

    Defaults to "us-east-1"

    returns

  42. 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

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

    Definition Classes
    AnyRef
  44. def taskBackoffTime: FiniteDuration

    Backoff period when tasks encounter an exception

    Backoff period when tasks encounter an exception

    returns

    defaults to 20 seconds

  45. def toString(): String

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Loggable
  53. 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 AnyRef

Inherited from Any

Ungrouped