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 NoSerializationVerificationNeeded with 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 NoSerializationVerificationNeeded with 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

    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( classOf[java.lang.Throwable] )
  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. final def isTimerActive(name: String): Boolean

    Definition Classes
    FSM
  24. def listenerManagement: akka.actor.Actor.Receive

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

    Attributes
    protected
    Definition Classes
    Listeners
  26. val log: LoggingAdapter

    Definition Classes
    ActorLogging
  27. def logTermination(reason: Reason): Unit

    Attributes
    protected
    Definition Classes
    FSM
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def nextStateData: RestHttpWorkerData

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

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

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

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

    Definition Classes
    FSM
  34. 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
  35. def postStop(): Unit

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

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  37. def preStart(): Unit

    Kick start processing with a message to ourself

    Kick start processing with a message to ourself

    Definition Classes
    RestHttpWorker → Actor
  38. def receive: Receive

    Definition Classes
    FSM → Actor
  39. implicit final val self: ActorRef

    Definition Classes
    Actor
  40. final def sender: ActorRef

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

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

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

    Definition Classes
    FSM
  44. final def stateData: RestHttpWorkerData

    Definition Classes
    FSM
  45. final def stateName: RestHttpWorkerState

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

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

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

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

    Definition Classes
    FSM
  50. def supervisorStrategy: SupervisorStrategy

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

    Definition Classes
    AnyRef
  52. def toString(): String

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

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

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

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

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

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

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

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

    Definition Classes
    FSM

Deprecated Value Members

  1. final def timerActive_?(name: String): Boolean

    Definition Classes
    FSM
    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) use isTimerActive instead

Inherited from ActorLogging

Inherited from Listeners

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped