io.gearpump.streaming.state.api

PersistentTask

abstract class PersistentTask[T] extends Task

PersistentTask is part of the transaction API

Users should extend this task if they want to get transaction support from the framework

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

Instance Constructors

  1. new PersistentTask(taskContext: TaskContext, conf: UserConfig)

Abstract Value Members

  1. abstract def persistentState: PersistentState[T]

    subclass should override this method to pass in a PersistentState

    subclass should override this method to pass in a PersistentState

    the framework has already offered two states

    • NonWindowState state with no time or other boundary
    • WindowState each state is bounded by a time window
  2. abstract def processMessage(state: PersistentState[T], message: Message): Unit

    subclass should override this method to specify how a new message should update state

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. val LOG: Logger

    Definition Classes
    Task
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val checkpointInterval: Long

  9. val checkpointManager: CheckpointManager

  10. val checkpointStore: CheckpointStore

  11. val checkpointStoreFactory: CheckpointStoreFactory

  12. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. final def onNext(message: Message): Unit

    Method called for each message received.

    Method called for each message received.

    Definition Classes
    PersistentTaskTaskTaskInterface
  23. final def onStart(startTime: StartTime): Unit

    Method called with the task is initialized.

    Method called with the task is initialized.

    startTime

    startTime that can be used to decide from when a source producer task should replay the data source, or from when a processor task should recover its checkpoint data in to in-memory state.

    Definition Classes
    PersistentTaskTaskTaskInterface
  24. final def onStop(): Unit

    Method called when task is under clean up.

    Method called when task is under clean up. This can be used to cleanup resource when the application finished.

    Definition Classes
    PersistentTaskTaskTaskInterface
  25. def receiveUnManagedMessage: Receive

    handler for unmanaged message

    handler for unmanaged message

    returns

    the handler

    Definition Classes
    TaskTaskInterface
  26. implicit val self: ActorRef

    Definition Classes
    Task
  27. def sender: ActorRef

    For managed message(type of Message), the sender mean nothing, you should not use this directory

    For managed message(type of Message), the sender mean nothing, you should not use this directory

    For unmanaged message, the sender represent the sender actor

    returns

    the sender

    Attributes
    protected
    Definition Classes
    Task
  28. val state: PersistentState[T]

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

    Definition Classes
    AnyRef
  30. implicit val system: ActorSystem

    Attributes
    protected
    Definition Classes
    Task
  31. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Task

Inherited from TaskInterface

Inherited from AnyRef

Inherited from Any

Ungrouped