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