Class ServerSideTimestampGenerator

    • Field Detail

      • INSTANCE

        public static final TimestampGenerator INSTANCE
        The unique instance of this generator.
    • Method Detail

      • next

        public long next()
        Description copied from interface: TimestampGenerator
        Returns the next timestamp.

        Implementors should enforce increasing monotonicity of timestamps, that is, a timestamp returned should always be strictly greater that any previously returned timestamp.

        Implementors should strive to achieve microsecond precision in the best possible way, which is usually largely dependent on the underlying operating system's capabilities.

        Specified by:
        next in interface TimestampGenerator
        Returns:
        the next timestamp (in microseconds). If it equals Long.MIN_VALUE, it won't be sent by the driver, letting Cassandra generate a server-side timestamp.