public static < M extends MessageOrBuilder > M updateTimestamp ( final long timestamp , final M messageOrBuilder , final TimeUnit timeUnit , final Logger logger ) { try { return updateTimestamp ( timestamp , messageOrBuilder , timeUnit ) ; } catch ( CouldNotPerformException ex ) { ExceptionPrinter . printHistory ( ex , logger ) ; return messageOrBuilder ; } }
Method updates the timestamp field of the given message with the given timestamp . In case of an error the original message is returned .