change default expire time in java code