public class PubADManager extends ADManager
| Modifier and Type | Class and Description |
|---|---|
static class |
PubADManager.ProcessTransactedWindowedAckErrorTask |
class |
PubADManager.ProcessWindowedAckErrorTask |
class |
PubADManager.ProcessWindowedAckTask |
static class |
PubADManager.ReturnUnackedMgsToPoolTask |
| Modifier and Type | Field and Description |
|---|---|
String |
ack_Event_Mode |
int |
configured_Pub_Ack_Window_Size |
long |
flow_Id |
String |
flow_Name |
SeqNumAllocator |
idAllocator |
int |
max_Resends |
int |
pub_Ack_Time |
int |
pub_Ack_Window_Size |
long |
pub_Id |
boolean |
rtr_Windowed_Ack |
lastMessageIdAcked, lastMessageIdSent, startMessageId| Constructor and Description |
|---|
PubADManager(JCSMPXMLMessageProducer producer,
ContextImpl context) |
clearADTimerpublic int pub_Ack_Time
public int pub_Ack_Window_Size
public int configured_Pub_Ack_Window_Size
public int max_Resends
public boolean rtr_Windowed_Ack
public String ack_Event_Mode
public volatile long flow_Id
public volatile long pub_Id
public String flow_Name
public volatile SeqNumAllocator idAllocator
public PubADManager(JCSMPXMLMessageProducer producer, ContextImpl context)
public void reInit()
public JCSMPXMLMessageProducer getMessageProducer()
public void setPub_Ack_Window_Size(int pub_Ack_Window_Size)
public void resetAdFlow()
public int getPub_Ack_Window_Size()
public void setRtr_Windowed_Ack(boolean rtr_Windowed_Ack)
public boolean isRtr_Windowed_Ack()
public long setMessageIdParamsOnPubMessage(JCSMPXMLMessage message)
public void renumberMessageIdParamsOnPubMessages(long respLastIdAcked)
public void startADTimer()
startADTimer in class ADManagerpublic void initMessageQueue()
public void clearMessageQueue()
public void suspendMsgQueue()
public void resumeMsgQueue()
public boolean processWindowedAck(long msgId)
throws JCSMPException
JCSMPExceptionpublic boolean processWindowedAckError(long msgId,
JCSMPException e)
throws JCSMPException
JCSMPExceptionpublic boolean transactedProcessWindowedAckError(long msgId,
JCSMPException e)
throws JCSMPException
JCSMPExceptionpublic void doRetransmitNow()
public void enqueueMsgWithIdUpdateWithThrows(JCSMPXMLMessage msg) throws JCSMPException
JCSMPExceptionpublic void enqueueMsgWithIdUpdate(JCSMPXMLMessage msg) throws InvalidOperationException
InvalidOperationExceptionpublic boolean isQueueFull()
public boolean isQueueEmpty()
public void waitUntilQueueEmpty()
throws InterruptedException
InterruptedExceptionpublic int getQueueUsedSize()
public void copyUnackedADMsgs(LinkedList<JCSMPXMLMessage> adMsgs)
public static PubADManager getNewADManager(JCSMPXMLMessageProducer producer, JCSMPProperties props, ContextImpl context, ProducerFlowProperties fprop)
public void handleRollback(long msgID)
Copyright 2004-2020 Solace Corporation. All rights reserved.