@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { // Read the StandardSession state this.id = DataSerializer.readString(in); this.creationTime = in.readLong(); this.lastAccessedTime = in.readLong(); this.thisAccessedTime = in.readLong(); this.maxInactiveInterval = in.readInt(); this.isNew = in.readBoolean(); this.isValid = in.readBoolean(); readInAttributes(in); this.serializedPrincipal = DataSerializer.readByteArray(in); // Read the DeltaSession state this.enableGatewayDeltaReplication = in.readBoolean(); this.sessionRegionName = DataSerializer.readString(in); // This allows for backwards compatibility with 2.1 clients if (((InputStream) in).available() > 0) { this.contextName = DataSerializer.readString(in); } // Initialize the transients if necessary if (this.listeners == null) { this.listeners = new ArrayList(); } if (this.notes == null) { this.notes = new Hashtable(); } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { // Read the StandardSession state this.id = DataSerializer.readString(in); this.creationTime = in.readLong(); this.lastAccessedTime = in.readLong(); this.thisAccessedTime = in.readLong(); this.maxInactiveInterval = in.readInt(); this.isNew = in.readBoolean(); this.isValid = in.readBoolean(); this.attributes = readInAttributes(in); this.serializedPrincipal = DataSerializer.readByteArray(in); // Read the DeltaSession state this.enableGatewayDeltaReplication = in.readBoolean(); this.sessionRegionName = DataSerializer.readString(in); // This allows for backwards compatibility with 2.1 clients if (((InputStream) in).available() > 0) { this.contextName = DataSerializer.readString(in); } // Initialize the transients if necessary if (this.listeners == null) { this.listeners = new ArrayList(); } if (this.notes == null) { this.notes = new Hashtable(); } }