Package io.aeron.driver
Class DefaultAllowTerminationValidator
java.lang.Object
io.aeron.driver.DefaultAllowTerminationValidator
- All Implemented Interfaces:
TerminationValidator
Default implementation of
TerminationValidator
that always allows termination.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allowTermination
(File aeronDir, DirectBuffer tokenBuffer, int tokenOffset, int tokenLength) Should the given termination request be considered valid or not.
-
Constructor Details
-
DefaultAllowTerminationValidator
public DefaultAllowTerminationValidator()
-
-
Method Details
-
allowTermination
public boolean allowTermination(File aeronDir, DirectBuffer tokenBuffer, int tokenOffset, int tokenLength) Should the given termination request be considered valid or not.- Specified by:
allowTermination
in interfaceTerminationValidator
- 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.
-