org.mashupbots.socko.rest

RestHttpWorker

class RestHttpWorker extends Actor with FSM[RestHttpWorkerState, RestHttpWorkerData] with ActorLogging

Processes a HTTP REST request.

Processing steps:

Linear Supertypes
FSM[RestHttpWorkerState, RestHttpWorkerData], ActorLogging, Listeners, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RestHttpWorker
  2. FSM
  3. ActorLogging
  4. Listeners
  5. Actor
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RestHttpWorker(registry: RestRegistry, httpRequestEvent: HttpRequestEvent)

    registry

    Registry to find operations

    httpRequestEvent

    HTTP request to process

Type Members

  1. case class Data(op: Option[RestOperation] = scala.None, req: Option[RestRequest] = scala.None, startedOn: Date = new java.util.Date()) extends RestHttpWorkerData with Product with Serializable

    Processing data

  2. case class Event extends Product with Serializable

    Definition Classes
    FSM
  3. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor
  4. type State = akka.actor.FSM.State[RestHttpWorkerState, RestHttpWorkerData]

    Definition Classes
    FSM
  5. type StateFunction = PartialFunction[Event, State]

    Definition Classes
    FSM
  6. case class StopEvent extends Product with Serializable

    Definition Classes
    FSM
  7. type Timeout = Option[FiniteDuration]

    Definition Classes
    FSM
  8. final class TransformHelper extends AnyRef

    Definition Classes
    FSM
  9. type TransitionHandler = PartialFunction[(RestHttpWorkerState, RestHttpWorkerState), Unit]

    Definition Classes
    FSM

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. val ->: akka.actor.FSM.->.type

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

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

    Definition Classes
    Any
  7. object DispatchingRequest extends RestHttpWorkerState with Product with Serializable

    Locate processing actor, deserialize request and send it to the actor

  8. val StateTimeout: akka.actor.FSM.StateTimeout.type

    Definition Classes
    FSM
  9. object WaitingForResponse extends RestHttpWorkerState with Product with Serializable

    Wait for response to arrive from the actor; and when it does, serialize it back to the caller

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. final def cancelTimer(name: String): Unit

    Definition Classes
    FSM
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. implicit val context: ActorContext

    Attributes
    protected[akka]
    Definition Classes
    Actor
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def gossip(msg: Any)(implicit sender: ActorRef): Unit

    Attributes
    protected
    Definition Classes
    Listeners
  19. final def goto(nextStateName: RestHttpWorkerState): State

    Definition Classes
    FSM
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def initialize: Unit

    Definition Classes
    FSM
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def listenerManagement: akka.actor.Actor.Receive

    Attributes
    protected
    Definition Classes
    Listeners
  24. val listeners: Set[ActorRef]

    Attributes
    protected
    Definition Classes
    Listeners
  25. val log: LoggingAdapter

    Definition Classes
    ActorLogging
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def nextStateData: RestHttpWorkerData

    Definition Classes
    FSM
  28. final def notify(): Unit

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

    Definition Classes
    AnyRef
  30. final def onTermination(terminationHandler: PartialFunction[StopEvent, Unit]): Unit

    Definition Classes
    FSM
  31. final def onTransition(transitionHandler: TransitionHandler): Unit

    Definition Classes
    FSM
  32. def postRestart(reason: Throwable): Unit

    Start with a ProcessError so that we record the unhandled exception during processing and stop

    Start with a ProcessError so that we record the unhandled exception during processing and stop

    Definition Classes
    RestHttpWorker → Actor
  33. def postStop(): Unit

    Definition Classes
    FSM
  34. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
  35. def preStart(): Unit

    Kick start processing with a message to ourself

    Kick start processing with a message to ourself

    Definition Classes
    RestHttpWorker → Actor
  36. def receive: Receive

    Definition Classes
    FSM
  37. implicit final val self: ActorRef

    Definition Classes
    Actor
  38. final def sender: ActorRef

    Definition Classes
    Actor
  39. final def setStateTimeout(state: RestHttpWorkerState, timeout: Timeout): Unit

    Definition Classes
    FSM
  40. final def setTimer(name: String, msg: Any, timeout: FiniteDuration, repeat: Boolean): State

    Definition Classes
    FSM
  41. final def startWith(stateName: RestHttpWorkerState, stateData: RestHttpWorkerData, timeout: Timeout): Unit

    Definition Classes
    FSM
  42. final def stateData: RestHttpWorkerData

    Definition Classes
    FSM
  43. final def stateName: RestHttpWorkerState

    Definition Classes
    FSM
  44. final def stay(): State

    Definition Classes
    FSM
  45. final def stop(reason: Reason, stateData: RestHttpWorkerData): State

    Definition Classes
    FSM
  46. final def stop(reason: Reason): State

    Definition Classes
    FSM
  47. final def stop(): State

    Definition Classes
    FSM
  48. def supervisorStrategy: SupervisorStrategy

    Definition Classes
    Actor
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. final def timerActive_?(name: String): Boolean

    Definition Classes
    FSM
  51. def toString(): String

    Definition Classes
    AnyRef → Any
  52. implicit final def total2pf(transitionHandler: (RestHttpWorkerState, RestHttpWorkerState) ⇒ Unit): TransitionHandler

    Definition Classes
    FSM
  53. final def transform(func: StateFunction): TransformHelper

    Definition Classes
    FSM
  54. def unhandled(message: Any): Unit

    Definition Classes
    Actor
  55. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  58. final def when(stateName: RestHttpWorkerState, stateTimeout: FiniteDuration)(stateFunction: StateFunction): Unit

    Definition Classes
    FSM
  59. final def whenUnhandled(stateFunction: StateFunction): Unit

    Definition Classes
    FSM

Inherited from ActorLogging

Inherited from Listeners

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped