|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.lbm.LBMHFX
public class LBMHFX
Constructor Summary | |
---|---|
|
LBMHFX(LBMHFXAttributes attr,
java.lang.String topic,
LBMReceiverCallback cb,
LBMEventQueue evq)
Instantiate a new LBMHFX object on the specified topic. |
protected |
LBMHFX(java.lang.String topic)
|
Method Summary | |
---|---|
void |
close()
Close this HFX object. |
void |
close(LBMOperationCompleteCallback cb,
java.lang.Object cbArg)
Close this HFX object. |
LBMHFXReceiver |
createReceiver(LBMContext ctx,
LBMReceiverAttributes rattr,
java.lang.Object cbArg)
Create a receiver on the specified context, with the specified attributes and callback token. |
LBMConfigOption[] |
dumpAttributeList()
Returns an array of LBMConfigOptions |
java.lang.String |
getAttributeValue(java.lang.String attributeName)
Returns the value of a HFX-related attribute for this HFX. |
protected int |
onReceive(java.lang.Object cbArg,
LBMMessage msg)
Internal callback used when a message is delivered. |
void |
setAttributeValue(java.lang.String attributeName,
java.lang.String attributeValue)
Set the value of a HFX-related attribute for this HFX. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LBMHFX(java.lang.String topic)
public LBMHFX(LBMHFXAttributes attr, java.lang.String topic, LBMReceiverCallback cb, LBMEventQueue evq)
attr
- Optional attributes that modify the behavior of
the LBMHFX object.topic
- The topic to be used for all receivers created
using this LBMHFX object.cb
- The callback to be invoked when a new message is
delivered.evq
- Optional event queue to be used to deliver messages.Method Detail |
---|
public LBMConfigOption[] dumpAttributeList()
public void close()
public void close(LBMOperationCompleteCallback cb, java.lang.Object cbArg)
cb
- Callback to be called when the object is completely closed.cbArg
- Token to be delivered with the callback.protected int onReceive(java.lang.Object cbArg, LBMMessage msg)
public LBMHFXReceiver createReceiver(LBMContext ctx, LBMReceiverAttributes rattr, java.lang.Object cbArg)
ctx
- Context on which to create the receiver.rattr
- Attributes to be used for the receiver.cbArg
- Callback token to be associated with messages delivered through the newly created receiver.public java.lang.String getAttributeValue(java.lang.String attributeName) throws LBMException
attributeName
- Name of the attribute to retrieve
LBMException
- if attributeName
is not a valid attribute.public void setAttributeValue(java.lang.String attributeName, java.lang.String attributeValue) throws LBMException
attributeName
- Name of the attribute to setattributeValue
- New attribute value
LBMException
- if attributeName
is not a valid attribute,
or attributeValue
is not a valid value for attributeName
.#setProperty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |