public static DLockRemoteToken createFromDataInput(DataInput in) throws IOException, ClassNotFoundException {
  Object name=DataSerializer.readObject(in);
  RemoteThread lesseeThread=null;
  InternalDistributedMember lessee=(InternalDistributedMember)DataSerializer.readObject(in);
  lesseeThread=new RemoteThread(lessee,in.readInt());
  int leaseId=in.readInt();
  long leaseExpireTime=in.readLong();
  return new DLockRemoteToken(name,lesseeThread,leaseId,leaseExpireTime);
}

public static DLockRemoteToken createFromDataInput ( DataInput in ) throws IOException , ClassNotFoundException { Object name = DataSerializer . readObject ( in ) ; RemoteThread lesseeThread = null ; InternalDistributedMember lessee = ( InternalDistributedMember ) DataSerializer . readObject ( in ) ; lesseeThread = new RemoteThread ( lessee , in . readInt ( ) ) ; int leaseId = in . readInt ( ) ; long leaseExpireTime = in . readLong ( ) ; return new DLockRemoteToken ( name , lesseeThread , leaseId , leaseExpireTime ) ; }
creates a new immutable instance of dlockremotetoken from the provided datainput .
