Skip to content

Synchronized method dispatch in the store #14

@ZherebtsovAlexandr

Description

@ZherebtsovAlexandr

What is happened if I'll remove @syncronized?

I’ve considered two options. Method handle() will execute on the storeThread or same thread.

Between lines of the code actions.offer(action) and handle(actions.poll()) it's possible that will add many items to the queue. But I'm not seeing problems without @syncronized.

I'm feeling that missed important stuff in the sample. Can you explain me about @synchronized in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions