|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.latencybusters.lbm.LBMSource
com.latencybusters.lbm.LBMHotFailoverSource
public class LBMHotFailoverSource
LBM Hot-Failover Source class.
Warning: It is not safe to instantiate this object from a context thread callback.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
LBMHotFailoverSource(LBMContext lbmctx,
LBMTopic lbmtopic)
Instantiate an LBM Hot-Failover Source object associated with a given context and topic. |
|
LBMHotFailoverSource(LBMContext lbmctx,
LBMTopic lbmtopic,
LBMEventQueue lbmevq)
Instantiate an LBM Hot-Failover Source object associated with a given context, topic, and event queue. |
|
LBMHotFailoverSource(LBMContext lbmctx,
LBMTopic lbmtopic,
LBMSourceEventCallback cb,
java.lang.Object cbArg)
Instantiate an LBM Hot-Failover Source object associated with a given context and topic and initialize source event callback. |
|
LBMHotFailoverSource(LBMContext lbmctx,
LBMTopic lbmtopic,
LBMSourceEventCallback cb,
java.lang.Object cbArg,
LBMEventQueue lbmevq)
Instantiate an LBM Hot-Failover Source object associated with a given context, topic, and event queue and initialize source event callback. |
Method Summary | |
---|---|
protected void |
finalize()
|
void |
send(byte[] message,
int messageLength,
long sqn,
int flags)
Send a message to the topic associated with the LBM source. |
void |
send(byte[] message,
int messageLength,
long sqn,
int flags,
LBMSourceSendExInfo exinfo)
Send a message to the topic associated with the LBM source. |
void |
send(byte[] message,
int messageLength,
long sqn,
int flags,
java.lang.Object cbArg)
Send a message to the topic associated with the LBM source. |
void |
send(java.nio.ByteBuffer message,
int startPosition,
int messageLength,
long sqn,
int flags)
Send a message to the topic associated with the LBM source. |
void |
send(java.nio.ByteBuffer message,
int startPosition,
int messageLength,
long sqn,
int flags,
LBMSourceSendExInfo exinfo)
Send a message to the topic associated with the LBM source. |
void |
send(java.nio.ByteBuffer message,
int startPosition,
int messageLength,
long sqn,
int flags,
java.lang.Object cbArg)
Send a message to the topic associated with the LBM source. |
void |
sendReceiverReset(int flags,
LBMSourceSendExInfo exinfo)
Send a message that instructs hot-failover receivers to reset their state. |
Methods inherited from class com.latencybusters.lbm.LBMSource |
---|
addSourceCallback, addSourceCallback, close, createChannel, deleteChannel, dumpAttributeList, flush, getAttributeValue, getInflight, getInflightEx, getStatistics, isClosed, load, onResponse, onSourceEvent, removeSourceCallback, removeSourceCallback, resetStatistics, send, send, send, send, send, send, send, send, send, send, setAttributeValue, setInflight, setInflightEx, setProperty, setUMEMessageStable, umederegister |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LBMHotFailoverSource(LBMContext lbmctx, LBMTopic lbmtopic) throws LBMException
lbmctx
- Context with which to associate the source.lbmtopic
- LBMTopic used to initialize the source.
LBMException
- if any error occurs creating the hot failover source.public LBMHotFailoverSource(LBMContext lbmctx, LBMTopic lbmtopic, LBMSourceEventCallback cb, java.lang.Object cbArg) throws LBMException
lbmctx
- Context with which to associate the source.lbmtopic
- LBMTopic used to initialize the source.cb
- An object implementing the LBMSourceEventCallback interfacecbArg
- Callback token object
LBMException
- if any error occurs creating the hot failover source.public LBMHotFailoverSource(LBMContext lbmctx, LBMTopic lbmtopic, LBMEventQueue lbmevq) throws LBMException
lbmctx
- Context with which to associate the source.lbmtopic
- LBMTopic used to initialize the source.lbmevq
- Event queue with which to associate the source (all source events will be posted to this event queue).
LBMException
- if any error occurs creating the hot failover source.public LBMHotFailoverSource(LBMContext lbmctx, LBMTopic lbmtopic, LBMSourceEventCallback cb, java.lang.Object cbArg, LBMEventQueue lbmevq) throws LBMException
lbmctx
- Context with which to associate the source.lbmtopic
- LBMTopic used to initialize the source.cb
- An object implementing the LBMSourceEventCallback interfacecbArg
- Callback token objectlbmevq
- Event queue with which to associate the source
(all source events will be posted to this event queue).
LBMException
- if any error occurs creating the hot failover source.Method Detail |
---|
protected void finalize() throws LBMException
finalize
in class LBMSource
LBMException
public void send(byte[] message, int messageLength, long sqn, int flags) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
message
- Data to send in this messagemessageLength
- Number of bytes of data to send in this messagesqn
- The application sequence number to associate with this messageflags
- Flags indicating various conditions.
See next section for possible OR'd set of values.
LBMException
- if any error occurs sending the message.LBM.MSG_START_BATCH
,
LBM.MSG_END_BATCH
,
LBM.MSG_COMPLETE_BATCH
,
LBM.MSG_FLUSH
,
LBM.SRC_NONBLOCK
,
LBM.SRC_BLOCK
public void send(byte[] message, int messageLength, long sqn, int flags, java.lang.Object cbArg) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
Warning (UME only): Calling this method from a context thread callback for stability and confirmation events could cause a deadlock.
message
- Data to send in this messagemessageLength
- Number of bytes of data to send in this messagesqn
- The application sequence number to associate with this messageflags
- Flags indicating various conditions.
See next section for possible OR'd set of values.cbArg
- Client object to be passed back in stability or confirmation
events related to this message (UME only)
LBMException
- if any error occurs sending the message.LBM.MSG_START_BATCH
,
LBM.MSG_END_BATCH
,
LBM.MSG_COMPLETE_BATCH
,
LBM.MSG_FLUSH
,
LBM.SRC_NONBLOCK
,
LBM.SRC_BLOCK
,
LBM.SRC_EVENT_UME_MESSAGE_STABLE
,
LBM.SRC_EVENT_UME_DELIVERY_CONFIRMATION
public void send(byte[] message, int messageLength, long sqn, int flags, LBMSourceSendExInfo exinfo) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
Warning (UME only): Calling this method from a context thread callback for stability and confirmation events could cause a deadlock.
message
- Data to send in this messagemessageLength
- Number of bytes of data to send in this messagesqn
- The application sequence number to associate with this messageflags
- Flags indicating various conditions.
See next section for possible OR'd set of values.exinfo
- LBMSourceSendExInfo object, which includes flags to change
callback behavior and a client-supplied object to be passed back. (UME only)
LBMException
- if any error occurs sending the message.LBM.MSG_START_BATCH
,
LBM.MSG_END_BATCH
,
LBM.MSG_COMPLETE_BATCH
,
LBM.MSG_FLUSH
,
LBM.SRC_NONBLOCK
,
LBM.SRC_BLOCK
,
LBM.SRC_EVENT_UME_MESSAGE_STABLE
,
LBM.SRC_EVENT_UME_MESSAGE_STABLE_EX
,
LBM.SRC_EVENT_UME_DELIVERY_CONFIRMATION
,
LBM.SRC_EVENT_UME_DELIVERY_CONFIRMATION_EX
,
LBMSourceSendExInfo
public void send(java.nio.ByteBuffer message, int startPosition, int messageLength, long sqn, int flags) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
message
- Data to send in this messagestartPosition
- Starting position within the buffer to send frommessageLength
- Number of bytes of data to send in this messagesqn
- The application sequence number to associate with this messageflags
- Flags indicating various conditions.
See next section for possible OR'd set of values.
LBMException
- if any error occurs sending the message.LBM.MSG_START_BATCH
,
LBM.MSG_END_BATCH
,
LBM.MSG_COMPLETE_BATCH
,
LBM.MSG_FLUSH
,
LBM.SRC_NONBLOCK
,
LBM.SRC_BLOCK
public void send(java.nio.ByteBuffer message, int startPosition, int messageLength, long sqn, int flags, java.lang.Object cbArg) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
Warning (UME only): Calling this method from a context thread callback for stability and confirmation events could cause a deadlock.
message
- Data to send in this messagestartPosition
- Starting position within the buffer to send frommessageLength
- Number of bytes of data to send in this messagesqn
- The application sequence number to associate with this messageflags
- Flags indicating various conditions.
See next section for possible OR'd set of values.cbArg
- Client object to be passed back in stability or confirmation
events related to this message (UME only)
LBMException
- if any error occurs sending the message.LBM.MSG_START_BATCH
,
LBM.MSG_END_BATCH
,
LBM.MSG_COMPLETE_BATCH
,
LBM.MSG_FLUSH
,
LBM.SRC_NONBLOCK
,
LBM.SRC_BLOCK
,
LBM.SRC_EVENT_UME_MESSAGE_STABLE
,
LBM.SRC_EVENT_UME_DELIVERY_CONFIRMATION
public void send(java.nio.ByteBuffer message, int startPosition, int messageLength, long sqn, int flags, LBMSourceSendExInfo exinfo) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
Warning (UME only): Calling this method from a context thread callback for stability and confirmation events could cause a deadlock.
message
- Data to send in this messagestartPosition
- Starting position within the buffer to send frommessageLength
- Number of bytes of data to send in this messagesqn
- The application sequence number to associate with this messageflags
- Flags indicating various conditions.
See next section for possible OR'd set of values.exinfo
- LBMSourceSendExInfo object, which includes flags to change
callback behavior and a client-supplied object to be passed back. (UME only)
LBMException
- if any error occurs sending the message.LBM.MSG_START_BATCH
,
LBM.MSG_END_BATCH
,
LBM.MSG_COMPLETE_BATCH
,
LBM.MSG_FLUSH
,
LBM.SRC_NONBLOCK
,
LBM.SRC_BLOCK
,
LBM.SRC_EVENT_UME_MESSAGE_STABLE
,
LBM.SRC_EVENT_UME_MESSAGE_STABLE_EX
,
LBM.SRC_EVENT_UME_DELIVERY_CONFIRMATION
,
LBM.SRC_EVENT_UME_DELIVERY_CONFIRMATION_EX
,
LBMSourceSendExInfo
public void sendReceiverReset(int flags, LBMSourceSendExInfo exinfo) throws LBMException
Caution: It is not recommended to call this method from a context thread callback.
Warning: This method should only be used when it is impossible to restart hot failover receivers. (UME only): Calling this method from a context thread callback for stability and confirmation events could cause a deadlock.
flags
- Flags indicating various send conditions.exinfo
- LBMSourceSendExInfo object which must include the hot failover sequence number to send
LBMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |