| Method from org.apache.activemq.command.ProducerId Detail: |
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || o.getClass() != ProducerId.class) {
return false;
}
ProducerId id = (ProducerId)o;
return sessionId == id.sessionId && value == id.value && connectionId.equals(id.connectionId);
}
|
public String getConnectionId() {
return connectionId;
}
|
public byte getDataStructureType() {
return DATA_STRUCTURE_TYPE;
}
|
public SessionId getParentId() {
if (parentId == null) {
parentId = new SessionId(this);
}
return parentId;
}
|
public long getSessionId() {
return sessionId;
}
|
public long getValue() {
return value;
}
|
public int hashCode() {
if (hashCode == 0) {
hashCode = connectionId.hashCode() ^ (int)sessionId ^ (int)value;
}
return hashCode;
}
|
public boolean isMarshallAware() {
return false;
}
|
public void setConnectionId(String connectionId) {
this.connectionId = connectionId;
}
|
public void setSessionId(long sessionId) {
this.sessionId = sessionId;
}
|
public void setValue(long producerId) {
this.value = producerId;
}
|
public String toString() {
if (key == null) {
key = connectionId + ":" + sessionId + ":" + value;
}
return key;
}
|