Interface NacosFunction<R>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface NacosFunction<R>
A function interface for action with NacosException
Since:
3.1.5
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies this function to the given argument.
  • Method Details

    • apply

      R apply() throws com.alibaba.nacos.api.exception.NacosException
      Applies this function to the given argument.
      Returns:
      the function result
      Throws:
      com.alibaba.nacos.api.exception.NacosException - if met with any error