private String key(KahaDestination destination) { return destination.getType().getNumber() + ":" + destination.getName(); }
protected String key(KahaDestination destination) { return destination.getType().getNumber() + ":" + destination.getName(); }
private ActiveMQDestination convert(KahaDestination commandDestination) { return convert(commandDestination.getType().getNumber(), commandDestination.getName()); }
@Override public void run() { this.store.doneTasks++; try { if (this.done.compareAndSet(false, true)) { this.store.addMessage(context, message); removeQueueTask(this.store, this.message.getMessageId()); this.future.complete(); } else if (cancelledTaskModMetric > 0 && (++this.store.canceledTasks) % cancelledTaskModMetric == 0) { System.err.println(this.store.dest.getName() + " cancelled: " + (this.store.canceledTasks / this.store.doneTasks) * 100); this.store.canceledTasks = this.store.doneTasks = 0; } } catch (Throwable t) { this.future.setException(t); removeQueueTask(this.store, this.message.getMessageId()); } }
@Override public void run() { this.store.doneTasks++; try { if (this.done.compareAndSet(false, true)) { this.topicStore.addMessage(context, message); // apply any acks we have synchronized (this.subscriptionKeys) { for (String key : this.subscriptionKeys) { this.topicStore.doAcknowledge(context, key, this.message.getMessageId(), null); } } removeTopicTask(this.topicStore, this.message.getMessageId()); this.future.complete(); } else if (cancelledTaskModMetric > 0 && this.store.canceledTasks++ % cancelledTaskModMetric == 0) { System.err.println(this.store.dest.getName() + " cancelled: " + (this.store.canceledTasks / this.store.doneTasks) * 100); this.store.canceledTasks = this.store.doneTasks = 0; } } catch (Throwable t) { this.future.setException(t); removeTopicTask(this.topicStore, this.message.getMessageId()); } } }
if (messageKeys != null && messageKeys.location.compareTo(location) < 0) { LOG.warn("Duplicate message add attempt rejected. Destination: {}://{}, Message id: {}", command.getDestination().getType(), command.getDestination().getName(), command.getMessageId());
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasType() ) { sb.append(prefix+"type: "); sb.append(getType()); sb.append("\n"); } if( hasName() ) { sb.append(prefix+"name: "); sb.append(getName()); sb.append("\n"); } return sb; }
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasType() ) { sb.append(prefix+"type: "); sb.append(getType()); sb.append("\n"); } if( hasName() ) { sb.append(prefix+"name: "); sb.append(getName()); sb.append("\n"); } return sb; }
public int hashCode() { int rc=-972308577; if (hasType()) { rc ^= ( 2622298^getType().hashCode() ); } if (hasName()) { rc ^= ( 2420395^getName().hashCode() ); } return rc; }
public int hashCode() { int rc=-972308577; if (hasType()) { rc ^= ( 2622298^getType().hashCode() ); } if (hasName()) { rc ^= ( 2420395^getName().hashCode() ); } return rc; }
public int hashCode() { int rc=-972308577; if (hasType()) { rc ^= ( 2622298^getType().hashCode() ); } if (hasName()) { rc ^= ( 2420395^getName().hashCode() ); } return rc; }
public KahaDestination mergeFrom(KahaDestination other) { if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { setName(other.getName()); } return this; }
public KahaDestination mergeFrom(KahaDestination other) { if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { setName(other.getName()); } return this; }
public KahaDestination mergeFrom(KahaDestination other) { if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { setName(other.getName()); } return this; }
public KahaDestination mergeFrom(KahaDestination other) { if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { setName(other.getName()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasType()) { output.writeEnum(1, getType().getNumber()); } if (hasName()) { output.writeString(2, getName()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasType()) { output.writeEnum(1, getType().getNumber()); } if (hasName()) { output.writeString(2, getName()); } }