Lambdas rely on Java serialization mechanism, so I think it's not possible to use AdvancedExternalizer.
Could you please tell me more about your usecase? What are you trying to do?
I was reading about lambda serialisation in the Infinispan 8.2 guide and there it says the simplest way to handle that is to cast them to java.io.Serializable, with AdvancedExternalizer being the recommended approach. Here is a link:
we are going to be fixing a bunch of isses in the docs this week, including adding an example of lambda AdvancedExternalizers