/** returns a string representation of this identifier, ignoring the toString cache */ public String toStringNoCache() { StringBuffer sb = new StringBuffer("identity(") .append(getDSMembership()) .append(",connection=") .append(uniqueId); if (identity != null) { DurableClientAttributes dca = getDurableAttributes(); if (dca.getId().length() > 0) { sb.append(",durableAttributes=").append(getDurableAttributes()).append(')').toString(); } } return sb.toString(); }
/** Used to update the timeout when a durable client comes back to a server */ public void updateDurableTimeout(int newValue) { DurableClientAttributes dca = getDurableAttributes(); if (dca != null) { dca.updateTimeout(newValue); } }
/** * Returns this <code>ClientProxyMembershipID</code>'s durable timeout. * * @return this <code>ClientProxyMembershipID</code>'s durable timeout * @since 5.5 */ protected int getDurableTimeout() { DurableClientAttributes dca = getDurableAttributes(); return dca == null ? 0 : dca.getTimeout(); }
/** * Returns this <code>ClientProxyMembershipID</code>'s durable id. * * @return this <code>ClientProxyMembershipID</code>'s durable id * @since 5.5 */ public String getDurableId() { DurableClientAttributes dca = getDurableAttributes(); return dca == null ? "" : dca.getId(); }