com.snowplowanalytics.snowplow.scalatracker.emitters

RequestUtils

Related Doc: package emitters

object RequestUtils

Object to hold methods for sending HTTP requests

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

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 attemptGet(host: String, payload: Map[String, String], port: Int = 80, https: Boolean = false): Boolean

    Attempt a GET request once

    Attempt a GET request once

    host

    collector host

    payload

    event map

    port

    collector port

    https

    should this request use the https scheme

    returns

    Whether the request succeeded

  6. def attemptPost(host: String, payload: Seq[Map[String, String]], port: Int = 80, https: Boolean = false): Boolean

    Attempt a POST request once

    Attempt a POST request once

    host

    collector host

    payload

    event map

    port

    collector port

    https

    should this request use the https scheme

    returns

    Whether the request succeeded

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. implicit val eventsMarshaller: Marshaller[Seq[Map[String, String]]]

    Marshall batch of events to string payload with application/json

  11. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. val longTimeout: FiniteDuration

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

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

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

    Definition Classes
    AnyRef
  19. val pipeline: (HttpRequest) ⇒ Future[HttpResponse]

  20. def retryGetUntilSuccessful(host: String, payload: Map[String, String], port: Int = 80, backoffPeriod: Long, attempt: Int = 1, https: Boolean = false): Unit

    Attempt a GET request until success or 10th try Double backoff period after each failed try

    Attempt a GET request until success or 10th try Double backoff period after each failed try

    host

    collector host

    payload

    event map

    port

    collector port

    backoffPeriod

    How long to wait after first failed request

    attempt

    accumulated value of tries

    https

    should this request use the https scheme

  21. def retryPostUntilSuccessful(host: String, payload: Seq[Map[String, String]], port: Int = 80, backoffPeriod: Long, attempt: Int = 1, https: Boolean = false): Unit

    Attempt a POST request until success or 10th try Double backoff period after each failed try

    Attempt a POST request until success or 10th try Double backoff period after each failed try

    host

    collector host

    payload

    event map

    port

    collector port

    backoffPeriod

    How long to wait after first failed request

    attempt

    accumulated value of tries

    https

    should this request use the https scheme

  22. def shutdown(): Unit

    Close the actor system and all connections

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

    Definition Classes
    AnyRef
  24. implicit val system: ActorSystem

  25. implicit val timeout: Timeout

  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped