public void rollback(final String id) { String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab != null) { long index = IdGenerator.getSequenceFromId(id); bab.setBit(index, false); modified = true; } } }
/** * mark this message as being received * * @param id */ public void rollback(final MessageId id) { if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab != null) { bab.setBit(id.getProducerSequenceId(), false); modified = true; } } } }
/** * checks whether this messageId has been seen before and adds this * messageId to the list * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(String id) { boolean answer = false; String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(seed, bab); modified = true; } long index = IdGenerator.getSequenceFromId(id); if (index >= 0) { answer = bab.setBit(index, true); modified = true; } } return answer; }
/** * Checks if this messageId has been seen before * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(final MessageId id) { boolean answer = false; if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(pid.toString(), bab); modified = true; } answer = bab.setBit(id.getProducerSequenceId(), true); } } return answer; }
public void rollback(final String id) { String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab != null) { long index = IdGenerator.getSequenceFromId(id); bab.setBit(index, false); modified = true; } } }
public void rollback(final String id) { String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab != null) { long index = IdGenerator.getSequenceFromId(id); bab.setBit(index, false); modified = true; } } }
public void rollback(final String id) { String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab != null) { long index = IdGenerator.getSequenceFromId(id); bab.setBit(index, false); modified = true; } } }
/** * mark this message as being received * * @param id */ public void rollback(final MessageId id) { if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid); if (bab != null) { bab.setBit(id.getProducerSequenceId(), false); } } } }
/** * mark this message as being received * * @param id */ public void rollback(final MessageId id) { if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab != null) { bab.setBit(id.getProducerSequenceId(), false); modified = true; } } } }
/** * mark this message as being received * * @param id */ public void rollback(final MessageId id) { if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab != null) { bab.setBit(id.getProducerSequenceId(), false); modified = true; } } } }
/** * mark this message as being received * * @param id */ public void rollback(final MessageId id) { if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab != null) { bab.setBit(id.getProducerSequenceId(), false); modified = true; } } } }
/** * checks whether this messageId has been seen before and adds this * messageId to the list * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(String id) { boolean answer = false; String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(seed, bab); modified = true; } long index = IdGenerator.getSequenceFromId(id); if (index >= 0) { answer = bab.setBit(index, true); modified = true; } } return answer; }
/** * Checks if this messageId has been seen before * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(final MessageId id) { boolean answer = false; if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(pid, bab); } answer = bab.setBit(id.getProducerSequenceId(), true); } } return answer; }
/** * checks whether this messageId has been seen before and adds this * messageId to the list * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(String id) { boolean answer = false; String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(seed, bab); modified = true; } long index = IdGenerator.getSequenceFromId(id); if (index >= 0) { answer = bab.setBit(index, true); modified = true; } } return answer; }
/** * checks whether this messageId has been seen before and adds this * messageId to the list * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(String id) { boolean answer = false; String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(seed, bab); } long index = IdGenerator.getSequenceFromId(id); if (index >= 0) { answer = bab.setBit(index, true); } } return answer; }
/** * checks whether this messageId has been seen before and adds this * messageId to the list * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(String id) { boolean answer = false; String seed = IdGenerator.getSeedFromId(id); if (seed != null) { BitArrayBin bab = map.get(seed); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(seed, bab); modified = true; } long index = IdGenerator.getSequenceFromId(id); if (index >= 0) { answer = bab.setBit(index, true); modified = true; } } return answer; }
/** * Checks if this messageId has been seen before * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(final MessageId id) { boolean answer = false; if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(pid.toString(), bab); modified = true; } answer = bab.setBit(id.getProducerSequenceId(), true); } } return answer; }
/** * Checks if this messageId has been seen before * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(final MessageId id) { boolean answer = false; if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(pid.toString(), bab); modified = true; } answer = bab.setBit(id.getProducerSequenceId(), true); } } return answer; }
/** * Checks if this messageId has been seen before * * @param id * @return true if the message is a duplicate */ public boolean isDuplicate(final MessageId id) { boolean answer = false; if (id != null) { ProducerId pid = id.getProducerId(); if (pid != null) { BitArrayBin bab = map.get(pid.toString()); if (bab == null) { bab = new BitArrayBin(auditDepth); map.put(pid.toString(), bab); modified = true; } answer = bab.setBit(id.getProducerSequenceId(), true); } } return answer; }