Skip to content

Questions about incomingQueue and blocking #291

Description

@imaginator

The following question came up:

in ChannelEngine the method processPacket() is adding incoming packet to incomingQueue. But the queue is implemented as BlockingQueue and for adding is put() used. The put works as it blocks if the queue is full. But there are other methods like add() that adds in not blocking manner and throws exception if the queue is full. In second case war could send error stanza back.

Can someone more "skilled in the art" comment on this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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