/** * For Externalizable * * @see Externalizable */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int identityLength = in.readShort(); if (identityLength > BYTES_32KB) { throw new IOException(LocalizedStrings.ClientProxyMembershipID_HANDSHAKE_IDENTITY_LENGTH_IS_TOO_BIG.toLocalizedString()); } this.identity = new byte[identityLength]; read(in, this.identity); this.uniqueId = in.readInt(); if (this.uniqueId == -1) { throw new IOException(LocalizedStrings.ClientProxyMembershipID_UNEXPECTED_EOF_REACHED_UNIQUE_ID_COULD_NOT_BE_READ.toLocalizedString()); } // {toString(); this.transientPort = ((InternalDistributedMember)this.memberId).getPort();} }
/** * For Externalizable * * @see Externalizable */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int identityLength = in.readShort(); if (identityLength > BYTES_32KB) { throw new IOException(LocalizedStrings.ClientProxyMembershipID_HANDSHAKE_IDENTITY_LENGTH_IS_TOO_BIG.toLocalizedString()); } this.identity = new byte[identityLength]; read(in, this.identity); this.uniqueId = in.readInt(); if (this.uniqueId == -1) { throw new IOException(LocalizedStrings.ClientProxyMembershipID_UNEXPECTED_EOF_REACHED_UNIQUE_ID_COULD_NOT_BE_READ.toLocalizedString()); } // {toString(); this.transientPort = ((InternalDistributedMember)this.memberId).getPort();} }