Package io.aeron.driver
Interface TerminationValidator
- All Known Implementing Classes:
DefaultAllowTerminationValidator
,DefaultDenyTerminationValidator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Validate if the driver should terminate based on the provided token.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowTermination
(File aeronDir, DirectBuffer tokenBuffer, int tokenOffset, int tokenLength) Should the given termination request be considered valid or not.
-
Method Details
-
allowTermination
Should the given termination request be considered valid or not.- Parameters:
aeronDir
- of the driver.tokenBuffer
- of the token in the request.tokenOffset
- of the token within the buffer.tokenLength
- of the token within the buffer.- Returns:
- true if request is to be considered valid and the driver termination hook should be run or false if not.
-