You don't need the thread field at all. Now that I think about this you could use AtomicLong

You can use lazySet to set the timestamp when petting.