@SuppressWarnings("rawtypes") protected void process(final KahaRemoveMessageCommand command, final Location location) throws IOException { if (command.hasTransactionInfo()) { List<Operation> inflightTx = getInflightTx(command.getTransactionInfo()); inflightTx.add(new RemoveOperation(command, location)); } else { this.indexLock.writeLock().lock(); try { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { updateIndex(tx, command, location); } }); } finally { this.indexLock.writeLock().unlock(); } } }
@SuppressWarnings("rawtypes") protected void process(final KahaRemoveMessageCommand command, final Location location) throws IOException { if (command.hasTransactionInfo()) { List<Operation> inflightTx = getInflightTx(command.getTransactionInfo()); inflightTx.add(new RemoveOperation(command, location)); } else { this.indexLock.writeLock().lock(); try { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { updateIndex(tx, command, location); } }); } finally { this.indexLock.writeLock().unlock(); } } }
@SuppressWarnings("rawtypes") protected void process(final KahaRemoveMessageCommand command, final Location location) throws IOException { if (command.hasTransactionInfo()) { List<Operation> inflightTx = getInflightTx(command.getTransactionInfo()); inflightTx.add(new RemoveOperation(command, location)); } else { this.indexLock.writeLock().lock(); try { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { updateIndex(tx, command, location); } }); } finally { this.indexLock.writeLock().unlock(); } } }
protected void process(final KahaRemoveMessageCommand command, final Location location) throws IOException { if (command.hasTransactionInfo()) { List<Operation> inflightTx = getInflightTx(command.getTransactionInfo(), location); inflightTx.add(new RemoveOpperation(command, location)); } else { this.indexLock.writeLock().lock(); try { pageFile.tx().execute(new Transaction.Closure<IOException>() { public void execute(Transaction tx) throws IOException { updateIndex(tx, command, location); } }); }finally { this.indexLock.writeLock().unlock(); } } }
@SuppressWarnings("rawtypes") protected void process(final KahaRemoveMessageCommand command, final Location location) throws IOException { if (command.hasTransactionInfo()) { List<Operation> inflightTx = getInflightTx(command.getTransactionInfo()); inflightTx.add(new RemoveOperation(command, location)); } else { this.indexLock.writeLock().lock(); try { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { updateIndex(tx, command, location); } }); } finally { this.indexLock.writeLock().unlock(); } } }
public java.util.ArrayList<String> missingFields() { java.util.ArrayList<String> missingFields = super.missingFields(); if( !hasDestination() ) { missingFields.add("destination"); } if( !hasMessageId() ) { missingFields.add("messageId"); } if( hasTransactionInfo() ) { try { getTransactionInfo().assertInitialized(); } catch (org.apache.activemq.protobuf.UninitializedMessageException e){ missingFields.addAll(prefix(e.getMissingFields(),"transaction_info.")); } } if( hasDestination() ) { try { getDestination().assertInitialized(); } catch (org.apache.activemq.protobuf.UninitializedMessageException e){ missingFields.addAll(prefix(e.getMissingFields(),"destination.")); } } return missingFields; }
public int hashCode() { int rc=-64211337; if (hasTransactionInfo()) { rc ^= ( 265667724^getTransactionInfo().hashCode() ); } if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasMessageId()) { rc ^= ( 563954530^getMessageId().hashCode() ); } if (hasAck()) { rc ^= ( 65641^getAck().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } return rc; }
public int hashCode() { int rc=-64211337; if (hasTransactionInfo()) { rc ^= ( 265667724^getTransactionInfo().hashCode() ); } if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasMessageId()) { rc ^= ( 563954530^getMessageId().hashCode() ); } if (hasAck()) { rc ^= ( 65641^getAck().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } return rc; }
public int hashCode() { int rc=-64211337; if (hasTransactionInfo()) { rc ^= ( 265667724^getTransactionInfo().hashCode() ); } if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasMessageId()) { rc ^= ( 563954530^getMessageId().hashCode() ); } if (hasAck()) { rc ^= ( 65641^getAck().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } return rc; }
public int hashCode() { int rc=-64211337; if (hasTransactionInfo()) { rc ^= ( 265667724^getTransactionInfo().hashCode() ); } if (hasDestination()) { rc ^= ( 238021614^getDestination().hashCode() ); } if (hasMessageId()) { rc ^= ( 563954530^getMessageId().hashCode() ); } if (hasAck()) { rc ^= ( 65641^getAck().hashCode() ); } if (hasSubscriptionKey()) { rc ^= ( 1895830498^getSubscriptionKey().hashCode() ); } return rc; }
public boolean equals(KahaRemoveMessageCommand obj) { if (hasTransactionInfo() ^ obj.hasTransactionInfo() ) return false; if (hasTransactionInfo() && ( !getTransactionInfo().equals(obj.getTransactionInfo()) )) return false; if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasMessageId() ^ obj.hasMessageId() ) return false; if (hasMessageId() && ( !getMessageId().equals(obj.getMessageId()) )) return false; if (hasAck() ^ obj.hasAck() ) return false; if (hasAck() && ( !getAck().equals(obj.getAck()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; return true; }
public boolean equals(KahaRemoveMessageCommand obj) { if (hasTransactionInfo() ^ obj.hasTransactionInfo() ) return false; if (hasTransactionInfo() && ( !getTransactionInfo().equals(obj.getTransactionInfo()) )) return false; if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasMessageId() ^ obj.hasMessageId() ) return false; if (hasMessageId() && ( !getMessageId().equals(obj.getMessageId()) )) return false; if (hasAck() ^ obj.hasAck() ) return false; if (hasAck() && ( !getAck().equals(obj.getAck()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; return true; }
public boolean equals(KahaRemoveMessageCommand obj) { if (hasTransactionInfo() ^ obj.hasTransactionInfo() ) return false; if (hasTransactionInfo() && ( !getTransactionInfo().equals(obj.getTransactionInfo()) )) return false; if (hasDestination() ^ obj.hasDestination() ) return false; if (hasDestination() && ( !getDestination().equals(obj.getDestination()) )) return false; if (hasMessageId() ^ obj.hasMessageId() ) return false; if (hasMessageId() && ( !getMessageId().equals(obj.getMessageId()) )) return false; if (hasAck() ^ obj.hasAck() ) return false; if (hasAck() && ( !getAck().equals(obj.getAck()) )) return false; if (hasSubscriptionKey() ^ obj.hasSubscriptionKey() ) return false; if (hasSubscriptionKey() && ( !getSubscriptionKey().equals(obj.getSubscriptionKey()) )) return false; return true; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasTransactionInfo()) { writeMessage(output, 1, getTransactionInfo()); } if (hasDestination()) { writeMessage(output, 2, getDestination()); } if (hasMessageId()) { output.writeString(3, getMessageId()); } if (hasAck()) { output.writeBytes(4, getAck()); } if (hasSubscriptionKey()) { output.writeString(5, getSubscriptionKey()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasTransactionInfo()) { writeMessage(output, 1, getTransactionInfo()); } if (hasDestination()) { writeMessage(output, 2, getDestination()); } if (hasMessageId()) { output.writeString(3, getMessageId()); } if (hasAck()) { output.writeBytes(4, getAck()); } if (hasSubscriptionKey()) { output.writeString(5, getSubscriptionKey()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasTransactionInfo()) { writeMessage(output, 1, getTransactionInfo()); } if (hasDestination()) { writeMessage(output, 2, getDestination()); } if (hasMessageId()) { output.writeString(3, getMessageId()); } if (hasAck()) { output.writeBytes(4, getAck()); } if (hasSubscriptionKey()) { output.writeString(5, getSubscriptionKey()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasTransactionInfo()) { writeMessage(output, 1, getTransactionInfo()); } if (hasDestination()) { writeMessage(output, 2, getDestination()); } if (hasMessageId()) { output.writeString(3, getMessageId()); } if (hasAck()) { output.writeBytes(4, getAck()); } if (hasSubscriptionKey()) { output.writeString(5, getSubscriptionKey()); } }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasTransactionInfo()) { size += computeMessageSize(1, getTransactionInfo()); } if (hasDestination()) { size += computeMessageSize(2, getDestination()); } if (hasMessageId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(3, getMessageId()); } if (hasAck()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getAck()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(5, getSubscriptionKey()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasTransactionInfo()) { size += computeMessageSize(1, getTransactionInfo()); } if (hasDestination()) { size += computeMessageSize(2, getDestination()); } if (hasMessageId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(3, getMessageId()); } if (hasAck()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getAck()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(5, getSubscriptionKey()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasTransactionInfo()) { size += computeMessageSize(1, getTransactionInfo()); } if (hasDestination()) { size += computeMessageSize(2, getDestination()); } if (hasMessageId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(3, getMessageId()); } if (hasAck()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(4, getAck()); } if (hasSubscriptionKey()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(5, getSubscriptionKey()); } memoizedSerializedSize = size; return size; }