/* * Close the specified mailbox. * * @param the mailbox to close. * * <p> After this operation, the mailbox will no longer be able to * receive messages. Any delivered but as yet unretrieved messages * can still be retrieved however. </p> * * <p> If there are links from the mailbox to other {@link * OtpErlangPid pids}, they will be broken when this method is * called and exit signals will be sent. </p> * **/ public virtual void closeMbox(OtpMbox mbox) { if (mbox != null) { mboxes.remove(mbox); mbox.name = null; mbox.breakLinks("normal"); } }