com.snowplowanalytics.snowplow.scalatracker.emitters

RequestUtils

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: 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 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

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

  9. def clone(): AnyRef

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

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

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

    Marshall batch of events to string payload with application/json

  13. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  17. val longTimeout: FiniteDuration

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

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

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

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

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

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

  24. def shutdown(): Unit

    Close the actor system and all connections

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

    Definition Classes
    AnyRef
  26. implicit val system: ActorSystem

  27. implicit val timeout: Timeout

  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped