Exemple #1
0
def purgeMessage(mc, msg, custid):
    print "purgeMessage()"
    whereClause = "md.customer_id = " + str(custid) + " and md.m1_message_id=" + str(msg.getMessageId())
    print "calling purge with", whereClause, "on part", msg.getPartitionId()
    partition = mc.getPartitionManager().getPartition(msg.getPartitionId())
    pc = PurgeController(partition, whereClause)
    rc = pc.execute()
Exemple #2
0
def purgeMessage(mc, msg, custid):
    whereClause = "md.customer_id = " + str(custid) + " and md.m1_message_id=" + str(msg.getMessageId())
    partition = mc.getPartitionManager().getPartition(msg.getPartitionId())
    pc = PurgeController(partition, whereClause)
    rc = pc.execute()