Skip to content

Add lifecycle hooks to EventSource #368

Closed
@lburgazzoli

Description

@lburgazzoli

The class io.javaoperatorsdk.operator.processing.event.EventSource does not provide any lifecycle method, so there is a chance a watch is registered and an event is received before an EventHandler is registered.

As example, the memcached example register a watcher before registering the EventSource.

I think it would be nice to have some sort of start/stop hook the implementors can use to safely start watch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions