org.apache.logging.log4j.util

Interface MessageSupplier



  • public interface MessageSupplier
    Classes implementing this interface know how to supply Messages.

    This is a functional interface intended to support lambda expressions in log4j 2.

    Implementors are free to cache values or return a new or distinct value each time the supplier is invoked.

    Since:
    2.4
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Message get()
      Gets a Message.
    • Method Detail

      • get

        Message get()
        Gets a Message.
        Returns:
        a Message

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.