- Type Parameters:
R- the type of the result of the function
- All Superinterfaces:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface GeneratorFunction<R> extends Serializable
A function which takes a timestamp and a sequence number as the input.
Modifier and Type Method Description
(long timestamp, long sequence)Applies the function to the given timestamp and sequence.
generateApplies the function to the given timestamp and sequence.
timestamp- the current timestamp
sequence- the current sequence
- the function result