Merge paradox/scala/mailboxes.md and java/mailboxes.md (#23191)
This commit is contained in:
parent
2b2923f1b6
commit
71175eaf54
4 changed files with 87 additions and 297 deletions
|
|
@ -15,9 +15,6 @@ import com.typesafe.config.Config
|
|||
import java.util.concurrent.ConcurrentLinkedQueue
|
||||
import scala.Option
|
||||
|
||||
// Marker trait used for mailbox requirements mapping
|
||||
trait MyUnboundedMessageQueueSemantics
|
||||
|
||||
object MyUnboundedMailbox {
|
||||
// This is the MessageQueue implementation
|
||||
class MyMessageQueue extends MessageQueue
|
||||
|
|
@ -58,3 +55,8 @@ class MyUnboundedMailbox extends MailboxType
|
|||
new MyMessageQueue()
|
||||
}
|
||||
//#mailbox-implementation-example
|
||||
|
||||
//#mailbox-marker-interface
|
||||
// Marker trait used for mailbox requirements mapping
|
||||
trait MyUnboundedMessageQueueSemantics
|
||||
//#mailbox-marker-interface
|
||||
Loading…
Add table
Add a link
Reference in a new issue