package rocks.inspectit.shared.cs.ci.strategy.impl; import java.util.Collections; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import rocks.inspectit.shared.cs.ci.strategy.IStrategyConfig; /** * Configuration for the simple buffer strategy. * * @author Ivan Senic * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "simple-buffer-strategy-config") public class SimpleBufferStrategyConfig implements IStrategyConfig { /** * Implementing class name. */ private static final String CLASS_NAME = "rocks.inspectit.agent.java.buffer.impl.SimpleBufferStrategy"; /** * {@inheritDoc} */ @Override public String getClassName() { return CLASS_NAME; } /** * {@inheritDoc} */ @Override public Map<String, String> getSettings() { return Collections.emptyMap(); } /** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + this.getClass().hashCode(); return result; } /** * {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } return true; } }