Interface | Description |
---|---|
Mailbox |
A mailbox is basically a blocking queue for inter-thread message exchange in form of
Runnable objects between
multiple producer threads and a single consumer. |
MailboxReceiver |
Consumer-facing side of the
Mailbox interface. |
MailboxSender |
Producer-facing side of the
Mailbox interface. |
Class | Description |
---|---|
MailboxImpl |
Implementation of
Mailbox inspired by ArrayBlockingQueue and tailored towards
our use case with multiple writers, single reader and volatile reads instead of lock & read on MailboxImpl.count . |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.