|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.FudgeMsgEnvelope
public class FudgeMsgEnvelope
An envelope enclosing the top message in the Fudge system.
When Fudge communicates it typically uses an envelope to wrap the top message. The envelope is only used at the top level and cannot be embedded in a message. The additional envelope data includes a version number and processing directives.
This class makes no guarantees about the immutability or thread-safety of its content, although it holds the references in an immutable and thread-safe way.
Constructor Summary | |
---|---|
FudgeMsgEnvelope(FudgeFieldContainer message)
Creates an envelope wrapping the given message. |
|
FudgeMsgEnvelope(FudgeFieldContainer message,
int version)
Creates an envelope wrapping the given message with a version. |
|
FudgeMsgEnvelope(FudgeFieldContainer message,
int version,
int processingDirectives)
Creates an envelope wrapping the given message with a version and processing directive flags. |
Method Summary | |
---|---|
FudgeFieldContainer |
getMessage()
Gets the underlying message. |
int |
getProcessingDirectives()
Gets the processing directive flags. |
int |
getVersion()
Gets the version number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FudgeMsgEnvelope(FudgeFieldContainer message)
message
- the message to wrap, not nullpublic FudgeMsgEnvelope(FudgeFieldContainer message, int version)
message
- the message to wrap, not nullversion
- the version, from 0 to 255public FudgeMsgEnvelope(FudgeFieldContainer message, int version, int processingDirectives)
message
- the message to wrap, not nullversion
- the version, from 0 to 255processingDirectives
- the processing directive flags, from 0 to 255Method Detail |
---|
public FudgeFieldContainer getMessage()
public int getVersion()
public int getProcessingDirectives()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |