Class DefaultAllowTerminationValidator

java.lang.Object
io.aeron.driver.DefaultAllowTerminationValidator
All Implemented Interfaces:
TerminationValidator

public class DefaultAllowTerminationValidator extends Object implements TerminationValidator
Default implementation of TerminationValidator that always allows termination.
  • 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 interface TerminationValidator
      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.