![JAR search and dependency download from the Maven repository](/logo.png)
io.geewit.snowflake.buffer.RejectedPutBufferHandler 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 tail catches the cursor it means that the ring buffer is full, any more buffer put request will be rejected.
* Specify the policy to handle the reject. This is a Lambda supported interface
*
* @author geewit
*/
@FunctionalInterface
public interface RejectedPutBufferHandler {
/**
* Reject put buffer request
*
* @param ringBuffer ringBuffer
* @param uid uid
*/
void rejectPutBuffer(RingBuffer ringBuffer, long uid);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy