private void updateIndex(Transaction tx, KahaSubscriptionCommand command) throws IOException { StoredDestination sd = getStoredDestination(command.getDestination(), tx); // If set then we are creating it.. otherwise we are destroying the sub if (command.hasSubscriptionInfo()) { String subscriptionKey = command.getSubscriptionKey(); sd.subscriptions.put(tx, subscriptionKey, command); long ackByteSequence=-1; if (!command.getRetroactive()) { ackByteSequence = sd.nextMessageId-1; } sd.subscriptionAcks.put(tx, subscriptionKey, ackByteSequence); addAckByteSequence(sd, ackByteSequence, subscriptionKey); } else { // delete the sub... String subscriptionKey = command.getSubscriptionKey(); sd.subscriptions.remove(tx, subscriptionKey); Long prev = sd.subscriptionAcks.remove(tx, subscriptionKey); if( prev!=null ) { removeAckByteSequence(tx, sd, subscriptionKey, prev); } } }
void updateIndex(Transaction tx, KahaSubscriptionCommand command, Location location) throws IOException { StoredDestination sd = getStoredDestination(command.getDestination(), tx); final String subscriptionKey = command.getSubscriptionKey();
public int hashCode() { int rc=172060159; if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } if (hasRetroactive()) { rc ^= ( 512121604^ (getRetroactive()? 3:-3) ); } if (hasSubscriptionInfo()) { rc ^= ( -1358848117^getSubscriptionInfo().hashCode() ); } return rc; }
public int hashCode() { int rc=172060159; if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } if (hasRetroactive()) { rc ^= ( 512121604^ (getRetroactive()? 3:-3) ); } if (hasSubscriptionInfo()) { rc ^= ( -1358848117^getSubscriptionInfo().hashCode() ); } return rc; }
public int hashCode() { int rc=172060159; if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } if (hasRetroactive()) { rc ^= ( 512121604^ (getRetroactive()? 3:-3) ); } if (hasSubscriptionInfo()) { rc ^= ( -1358848117^getSubscriptionInfo().hashCode() ); } return rc; }
public int hashCode() { int rc=172060159; if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } if (hasRetroactive()) { rc ^= ( 512121604^ (getRetroactive()? 3:-3) ); } if (hasSubscriptionInfo()) { rc ^= ( -1358848117^getSubscriptionInfo().hashCode() ); } return rc; }
public boolean equals(KahaSubscriptionCommand obj) { if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; if (hasRetroactive() ^ obj.hasRetroactive() ) return false; if (hasRetroactive() && ( getRetroactive()!=obj.getRetroactive() )) return false; if (hasSubscriptionInfo() ^ obj.hasSubscriptionInfo() ) return false; if (hasSubscriptionInfo() && ( !getSubscriptionInfo().equals(obj.getSubscriptionInfo()) )) return false; return true; }
public boolean equals(KahaSubscriptionCommand obj) { if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; if (hasRetroactive() ^ obj.hasRetroactive() ) return false; if (hasRetroactive() && ( getRetroactive()!=obj.getRetroactive() )) return false; if (hasSubscriptionInfo() ^ obj.hasSubscriptionInfo() ) return false; if (hasSubscriptionInfo() && ( !getSubscriptionInfo().equals(obj.getSubscriptionInfo()) )) return false; return true; }
public boolean equals(KahaSubscriptionCommand obj) { if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; if (hasRetroactive() ^ obj.hasRetroactive() ) return false; if (hasRetroactive() && ( getRetroactive()!=obj.getRetroactive() )) return false; if (hasSubscriptionInfo() ^ obj.hasSubscriptionInfo() ) return false; if (hasSubscriptionInfo() && ( !getSubscriptionInfo().equals(obj.getSubscriptionInfo()) )) return false; return true; }
public boolean equals(KahaSubscriptionCommand obj) { if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; if (hasRetroactive() ^ obj.hasRetroactive() ) return false; if (hasRetroactive() && ( getRetroactive()!=obj.getRetroactive() )) return false; if (hasSubscriptionInfo() ^ obj.hasSubscriptionInfo() ) return false; if (hasSubscriptionInfo() && ( !getSubscriptionInfo().equals(obj.getSubscriptionInfo()) )) return false; return true; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasDestination()) { writeMessage(output, 1, getDestination()); } if (hasSubscriptionKey()) { output.writeString(2, getSubscriptionKey()); } if (hasRetroactive()) { output.writeBool(3, getRetroactive()); } if (hasSubscriptionInfo()) { output.writeBytes(4, getSubscriptionInfo()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasDestination()) { writeMessage(output, 1, getDestination()); } if (hasSubscriptionKey()) { output.writeString(2, getSubscriptionKey()); } if (hasRetroactive()) { output.writeBool(3, getRetroactive()); } if (hasSubscriptionInfo()) { output.writeBytes(4, getSubscriptionInfo()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasDestination()) { writeMessage(output, 1, getDestination()); } if (hasSubscriptionKey()) { output.writeString(2, getSubscriptionKey()); } if (hasRetroactive()) { output.writeBool(3, getRetroactive()); } if (hasSubscriptionInfo()) { output.writeBytes(4, getSubscriptionInfo()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasDestination()) { writeMessage(output, 1, getDestination()); } if (hasSubscriptionKey()) { output.writeString(2, getSubscriptionKey()); } if (hasRetroactive()) { output.writeBool(3, getRetroactive()); } if (hasSubscriptionInfo()) { output.writeBytes(4, getSubscriptionInfo()); } }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasDestination()) { size += computeMessageSize(1, getDestination()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getSubscriptionKey()); } if (hasRetroactive()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getRetroactive()); } if (hasSubscriptionInfo()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getSubscriptionInfo()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasDestination()) { size += computeMessageSize(1, getDestination()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getSubscriptionKey()); } if (hasRetroactive()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getRetroactive()); } if (hasSubscriptionInfo()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getSubscriptionInfo()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasDestination()) { size += computeMessageSize(1, getDestination()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getSubscriptionKey()); } if (hasRetroactive()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getRetroactive()); } if (hasSubscriptionInfo()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getSubscriptionInfo()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasDestination()) { size += computeMessageSize(1, getDestination()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getSubscriptionKey()); } if (hasRetroactive()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getRetroactive()); } if (hasSubscriptionInfo()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getSubscriptionInfo()); } memoizedSerializedSize = size; return size; }
public KahaSubscriptionCommand mergeFrom(KahaSubscriptionCommand other) { if (other.hasDestination()) { if (hasDestination()) { getDestination().mergeFrom(other.getDestination()); } else { setDestination(other.getDestination().clone()); } } if (other.hasSubscriptionKey()) { setSubscriptionKey(other.getSubscriptionKey()); } if (other.hasRetroactive()) { setRetroactive(other.getRetroactive()); } if (other.hasSubscriptionInfo()) { setSubscriptionInfo(other.getSubscriptionInfo()); } return this; }
public KahaSubscriptionCommand mergeFrom(KahaSubscriptionCommand other) { if (other.hasDestination()) { if (hasDestination()) { getDestination().mergeFrom(other.getDestination()); } else { setDestination(other.getDestination().clone()); } } if (other.hasSubscriptionKey()) { setSubscriptionKey(other.getSubscriptionKey()); } if (other.hasRetroactive()) { setRetroactive(other.getRetroactive()); } if (other.hasSubscriptionInfo()) { setSubscriptionInfo(other.getSubscriptionInfo()); } return this; }