[This is preliminary documentation and is subject to change.]
The ErlMbox type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| ErlMbox(ErlLocalNode, ErlPid, ErlAtom) | Initializes a new instance of the ErlMbox class | |
| ErlMbox(ErlLocalNode, ErlPid, String) |
Create a mailbox with optional name
|
Methods
| Name | Description | |
|---|---|---|
| AsyncRPC(ErlAtom, ErlAtom, ErlAtom, ErlList, Nullable ErlAtom ) | ||
| AsyncRPC(ErlAtom, String, String, ErlList, Nullable ErlAtom ) | ||
| AsyncRPC(ErlAtom, ErlAtom, ErlAtom, ErlList, IErlObject, Nullable ErlAtom ) |
Send RPC call to a given node.
| |
| AsyncRPC(ErlAtom, String, String, ErlList, ErlPid, Nullable ErlAtom ) | ||
| BreakLinks(ErlAtom) |
Used to break all known links to this mbox
| |
| BreakLinks(ErlAtom, IErlObject) |
Used to break all known links to this mbox
| |
| Clear | ||
| Close |
Close this mailbox
| |
| Deliver(ErlConnectionException) | ||
| Deliver(ErlMsg) |
Called to deliver message to this mailbox
| |
| Dequeue | ||
| Destructor | (Overrides DisposableObject Destructor .) | |
| Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) | |
| Down | ||
| Enqueue | ||
| EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) | |
| Equals |
Determine if two mailboxes are equal
(Overrides | |
| Finalize | (Inherited from DisposableObject.) | |
| GetHashCode | (Overrides | |
Gets the (Inherited from | ||
| Link |
Link to a remote mailbox or Erlang process. Links are
idempotent, calling this method multiple times will not result in
more than one link being created
| |
Creates a shallow copy of the current (Inherited from | ||
| OnMailboxMessage | ||
| Receive |
Wait for a message to arrive for this mailbox. On timeout return null
| |
| receiveBuf |
Wait for a message to arrive for this mailbox
| |
| ReceiveMatch(ErlPatternMatcher, Int32) |
Receive a message and match it against a given pattern
| |
| ReceiveMatch(IErlObject, Int32) |
Receive a message and match it against a given pattern
| |
| ReceiveRPC | ||
| Register(String) |
Register a name for this mailbox. Registering a
name for a mailbox enables others to send messages without
knowing the ErlPid 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
| |
| Register(ErlAtom) | ||
| RPC(ErlAtom, ErlAtom, ErlAtom, ErlList, Nullable ErlAtom ) | ||
| RPC(ErlAtom, String, String, ErlList, Nullable ErlAtom ) | ||
| RPC(ErlAtom, ErlAtom, ErlAtom, ErlList, Int32, Nullable ErlAtom ) | ||
| RPC(ErlAtom, String, String, ErlList, Int32, Nullable ErlAtom ) | ||
| RPCcast(ErlAtom, ErlAtom, ErlAtom, ErlList) | ||
| RPCcast(ErlAtom, ErlAtom, ErlAtom, ErlList, IErlObject) | ||
| Send |
Send a message to a named mailbox created from another node
| |
Returns a string that represents the current object. (Inherited from | ||
| Unlink |
Extension Methods
Properties
| Name | Description | |
|---|---|---|
| Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) | |
| DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) | |
| Empty |
Return true if there are no messages waiting in the receive queue
of this connection
| |
| Handle |
Queue not empty status notification handle
| |
| LastUsed |
Timestamps when this mailbox was last used - this is used internally
by mailbox caching
| |
| MsgCount |
Return the number of messages currently waiting in the receive
queue of this connection
| |
| Name |
Get the registered name of this mailbox, or string.Empty if the
mailbox doesn't have a registered name
| |
| Node | ||
| QueueActive | ||
| Self |
Get the Pid identifying associated with this mailbox
|
Events
| Name | Description | |
|---|---|---|
| MailboxMessage |
If this event is assigned, it will be called on arrival of a message, but
the messages will not be put in the queue
|
See Also