|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.io.mailboxes.Envelope
public abstract class Envelope
Abstract class for messages passed through Channels.
The system defines several kinds of envelopes, including ObjectEnvelopes and ByteArrayEnvelopes.
Note that the conntents of the envelope should only be looked at by the receiver, or inter-isolate pointers could be created. The getContents() method enforces this.
Constructor Summary | |
---|---|
Envelope()
|
Method Summary | |
---|---|
protected void |
checkCallContext()
Check that this envelope has been sent, and that the caller's isolate is the receiver of the envelope. |
abstract Object |
getContents()
Return the contents of the envelope. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Envelope()
Method Detail |
---|
protected void checkCallContext() throws IllegalStateException
IllegalStateException
- if the conditions are not met.public abstract Object getContents()
IllegalStateException
- if called before the envelopesent, or called by the sender.
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |