actors

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionsSupervisor

type SubscriptionsSupervisor struct {
	// contains filtered or unexported fields
}

SubscriptionsSupervisor manages the state of NATS Streaming subscriptions

func StartSubscriptionsSupervisor

func StartSubscriptionsSupervisor(opts *opts.Options, tracer *trc.Tracer) *SubscriptionsSupervisor

StartSubscriptionsSupervisor starts supervisor actor

func (*SubscriptionsSupervisor) IsNATSConnected

func (s *SubscriptionsSupervisor) IsNATSConnected() bool

IsNATSConnected returns the status of NATS connection

func (*SubscriptionsSupervisor) IsRunning

func (s *SubscriptionsSupervisor) IsRunning() bool

IsRunning returns the status of supervisor actor

func (*SubscriptionsSupervisor) PoisonPill

func (s *SubscriptionsSupervisor) PoisonPill()

PoisonPill requests actor to stop

func (*SubscriptionsSupervisor) ReconnectToNATSStreaming

func (s *SubscriptionsSupervisor) ReconnectToNATSStreaming()

ReconnectToNATSStreaming ....

func (*SubscriptionsSupervisor) StartSubscriptionReq

func (s *SubscriptionsSupervisor) StartSubscriptionReq(sub *v1alpha1.Subscription)

StartSubscriptionReq message models the request to start handling EventBus subscription

func (*SubscriptionsSupervisor) StopSubscriptionReq

func (s *SubscriptionsSupervisor) StopSubscriptionReq(sub *v1alpha1.Subscription)

StopSubscriptionReq message models the request to stop handling EventBus subscription

type SubscriptionsSupervisorInterface

type SubscriptionsSupervisorInterface interface {
	PoisonPill()
	IsRunning() bool
	IsNATSConnected() bool
	StartSubscriptionReq(sub *v1alpha1.Subscription)
	StopSubscriptionReq(sub *v1alpha1.Subscription)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL