public class SMFPubMsgHeaderBean extends Object implements HeaderDescriptionBean, BufferCloningUser
SMFPubMsgHeaderBean is only used by publisher for sending
messages. It does not use TLVParameter objects to store header
parameters. Instead, when publisher adds parameter into this header bean, the
parameter is encoded right away into array of bytes.| Constructor and Description |
|---|
SMFPubMsgHeaderBean(boolean isDirect) |
SMFPubMsgHeaderBean(SMFPubMsgHeaderBean toclone,
BufferCloningPool bufCloningPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEncodedParam(byte[] encodedParam) |
void |
addParam(AbstractTLVParameter param) |
void |
addParam(int uh,
int type,
byte[] value) |
void |
dumpHeaderToDirectBB() |
SmfTLVParameter[] |
findParameters(int typeEnum) |
int |
getAdf() |
int |
getDmqEligible() |
int |
getDto() |
int |
getElidingEligible() |
int |
getEncodedParams(byte[] paramData)
Dumps the encoded parameter buffer to paramData.
|
byte[] |
getHeaderBuf() |
int |
getHeaderBufLen() |
ByteBuffer |
getHeaderByteBuffer() |
int |
getMaxParamAction() |
int |
getMsgLen() |
FastSmfParamContainer |
getParamContainer() |
SmfTLVParameter[] |
getParams() |
int |
getSmfEncodedLength()
Get smf encoded length (base size + param length + pad bytes)
|
int |
getSmfEncodedLength(int smfVersion) |
int |
getSmfProtocol() |
int |
getUserCosValue() |
boolean |
isUnkParamFlagSet() |
void |
releaseContentBuffer(BufferCloningPool bufCloningPool) |
void |
reset() |
void |
setAdf(int adf) |
void |
setDmqEligible(int dmqEligible) |
void |
setDto(int dto) |
void |
setElidingEligible(int elidingEligible) |
void |
setHeaderBufLen(int len) |
SMFPubMsgHeaderBean |
setMsgLen(int msgLen) |
void |
setParamAction(int uh) |
void |
setSmfProtocol(int smfProtocol) |
void |
setUnkParamFlag(boolean unk_param_found) |
void |
setUserCosValue(int userCosValue) |
String |
toString() |
public SMFPubMsgHeaderBean(boolean isDirect)
public SMFPubMsgHeaderBean(SMFPubMsgHeaderBean toclone, BufferCloningPool bufCloningPool)
public void reset()
reset in interface HeaderDescriptionBeanpublic int getMsgLen()
public SMFPubMsgHeaderBean setMsgLen(int msgLen)
public void addParam(AbstractTLVParameter param)
addParam in interface HeaderDescriptionBeanpublic void addParam(int uh,
int type,
byte[] value)
public void addEncodedParam(byte[] encodedParam)
public FastSmfParamContainer getParamContainer()
public SmfTLVParameter[] findParameters(int typeEnum)
public SmfTLVParameter[] getParams()
getParams in interface HeaderDescriptionBeanpublic int getEncodedParams(byte[] paramData)
paramData - Buffer to write topublic int getSmfEncodedLength()
getSmfEncodedLength in interface HeaderDescriptionBeanpublic int getSmfEncodedLength(int smfVersion)
public int getUserCosValue()
public void setUserCosValue(int userCosValue)
public int getDto()
public void setDto(int dto)
public int getAdf()
public void setAdf(int adf)
public int getDmqEligible()
public void setDmqEligible(int dmqEligible)
public int getElidingEligible()
public void setElidingEligible(int elidingEligible)
public int getMaxParamAction()
getMaxParamAction in interface HeaderDescriptionBeanpublic boolean isUnkParamFlagSet()
isUnkParamFlagSet in interface HeaderDescriptionBeanpublic void setParamAction(int uh)
setParamAction in interface HeaderDescriptionBeanpublic void setUnkParamFlag(boolean unk_param_found)
setUnkParamFlag in interface HeaderDescriptionBeanpublic int getSmfProtocol()
public void setSmfProtocol(int smfProtocol)
public byte[] getHeaderBuf()
public int getHeaderBufLen()
public void setHeaderBufLen(int len)
public void dumpHeaderToDirectBB()
public ByteBuffer getHeaderByteBuffer()
public void releaseContentBuffer(BufferCloningPool bufCloningPool)
releaseContentBuffer in interface BufferCloningUserCopyright 2004-2019 Solace Corporation. All rights reserved.