registerName() public method

public registerName ( String name, Erlang.NET.OtpMbox mbox ) : bool
name String
mbox Erlang.NET.OtpMbox
return bool
Exemplo n.º 1
0
 /**
  * <p>
  * Register or remove a name for this mailbox. Registering a name for a
  * mailbox enables others to send messages without knowing the
  * {@link OtpErlangPid pid} of the mailbox. A mailbox can have at most one
  * name; if the mailbox already had a name, calling this method will
  * supercede that name.
  * </p>
  *
  * @param name
  *                the name to register for the mailbox. Specify null to
  *                unregister the existing name from this mailbox.
  *
  * @return true if the name was available, or false otherwise.
  */
 public bool registerName(String name)
 {
     lock (this)
     {
         return(home.registerName(name, this));
     }
 }