io.geewit.snowflake.buffer.RejectedTakeBufferHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw-snowflake Show documentation
Show all versions of gw-snowflake Show documentation
A Java Edition Snowflake By Geewit
package io.geewit.snowflake.buffer;
/**
* If cursor catches the tail it means that the ring buffer is empty, any more buffer take request will be rejected.
* Specify the policy to handle the reject. This is a Lambda supported interface
*
* @author geewit
*/
@FunctionalInterface
public interface RejectedTakeBufferHandler {
/**
* Reject take buffer request
*
* @param ringBuffer RingBuffer
*/
void rejectTakeBuffer(RingBuffer ringBuffer);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy