public interface Mailbox extends MailboxReceiver, MailboxSender
Runnable
objects between
multiple producer threads and a single consumer.Modifier and Type | Method and Description |
---|---|
void |
clearAndPut(Runnable priorityAction)
The effect of this is that all pending letters are dropped and the given priorityAction
is enqueued to the head of the mailbox.
|
hasMail, takeMail, tryTakeMail, waitUntilHasMail
putMail, tryPutMail, waitUntilHasCapacity
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.