Documentation ¶
Index ¶
- Variables
- func NewService(params *service.BootstrapParams, config *Config) common.Daemon
- type Config
- type Engine
- type Handler
- func (h *Handler) AddActivityTask(ctx thrift.Context, addRequest *m.AddActivityTaskRequest) error
- func (h *Handler) AddDecisionTask(ctx thrift.Context, addRequest *m.AddDecisionTaskRequest) error
- func (h *Handler) Health(ctx thrift.Context) (*health.HealthStatus, error)
- func (h *Handler) PollForActivityTask(ctx thrift.Context, pollRequest *m.PollForActivityTaskRequest) (*gen.PollForActivityTaskResponse, error)
- func (h *Handler) PollForDecisionTask(ctx thrift.Context, pollRequest *m.PollForDecisionTaskRequest) (*m.PollForDecisionTaskResponse, error)
- func (h *Handler) Start(thriftService []thrift.TChanServer) error
- func (h *Handler) Stop()
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoTasks is exported temporarily for integration test ErrNoTasks = errors.New("No tasks") )
Functions ¶
func NewService ¶
func NewService(params *service.BootstrapParams, config *Config) common.Daemon
NewService builds a new cadence-matching service
Types ¶
type Config ¶ added in v0.3.0
type Config struct { EnableSyncMatch bool // Time to hold a poll request before returning an empty response if there are no tasks LongPollExpirationInterval time.Duration // taskListManager configuration RangeSize int64 GetTasksBatchSize int UpdateAckInterval time.Duration // taskWriter configuration OutstandingTaskAppendsThreshold int MaxTaskBatchSize int }
Config represents configuration for cadence-matching service
type Engine ¶
type Engine interface { Stop() AddDecisionTask(addRequest *m.AddDecisionTaskRequest) error AddActivityTask(addRequest *m.AddActivityTaskRequest) error PollForDecisionTask(ctx thrift.Context, request *m.PollForDecisionTaskRequest) (*m.PollForDecisionTaskResponse, error) PollForActivityTask(ctx thrift.Context, request *m.PollForActivityTaskRequest) (*workflow.PollForActivityTaskResponse, error) }
Engine exposes interfaces for clients to poll for activity and decision tasks.
type Handler ¶
Handler - Thrift handler inteface for history service
func NewHandler ¶
func NewHandler(sVice service.Service, config *Config, taskPersistence persistence.TaskManager) (*Handler, []thrift.TChanServer)
NewHandler creates a thrift handler for the history service
func (*Handler) AddActivityTask ¶
AddActivityTask - adds an activity task.
func (*Handler) AddDecisionTask ¶
AddDecisionTask - adds a decision task.
func (*Handler) PollForActivityTask ¶
func (h *Handler) PollForActivityTask(ctx thrift.Context, pollRequest *m.PollForActivityTaskRequest) (*gen.PollForActivityTaskResponse, error)
PollForActivityTask - long poll for an activity task.
func (*Handler) PollForDecisionTask ¶
func (h *Handler) PollForDecisionTask(ctx thrift.Context, pollRequest *m.PollForDecisionTaskRequest) (*m.PollForDecisionTaskResponse, error)
PollForDecisionTask - long poll for a decision task.
Click to show internal directories.
Click to hide internal directories.