/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = (prime * result) + ((this.eventType == null) ? 0 : this.eventType.hashCode()); result = (prime * result) + (this.isAsyncEvent ? 1231 : 1237); return result; }
/** * {@inheritDoc} */ @Override public void collectTags(Map<String, String> tags) { super.collectTags(tags); StringBuilder name = new StringBuilder(); name.append(eventType).append("-listener"); String fn = getFunctionName(); if (!fn.isEmpty()) { name.append(" (").append(fn).append(')'); } tags.put(ExtraTags.OPERATION_NAME, name.toString()); }
/** * {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } JSEventListenerExecution other = (JSEventListenerExecution) obj; if (this.eventType == null) { if (other.eventType != null) { return false; } } else if (!this.eventType.equals(other.eventType)) { return false; } if (this.isAsyncEvent != other.isAsyncEvent) { return false; } return true; } }
/** * {@inheritDoc} */ @Override public void collectTags(Map<String, String> tags) { super.collectTags(tags); StringBuilder name = new StringBuilder(); name.append("timer"); String fn = getFunctionName(); if (!fn.isEmpty()) { name.append(" (").append(fn).append(')'); } tags.put(ExtraTags.OPERATION_NAME, name.toString()); }
/** * {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } JSTimerExecution other = (JSTimerExecution) obj; if (Double.doubleToLongBits(this.configuredTimeout) != Double.doubleToLongBits(other.configuredTimeout)) { return false; } if (Double.doubleToLongBits(this.initiatorCallTimestamp) != Double.doubleToLongBits(other.initiatorCallTimestamp)) { return false; } if (this.iterationNumber != other.iterationNumber) { return false; } return true; }
/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp; temp = Double.doubleToLongBits(this.configuredTimeout); result = (prime * result) + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.initiatorCallTimestamp); result = (prime * result) + (int) (temp ^ (temp >>> 32)); result = (prime * result) + this.iterationNumber; return result; }