TransportClient addplugin in 5.0 is missing

in the process of upgrading from 2.x to 5 and I find my code does not work to add plugin to transport client

   // Create new transport client using the Builder pattern
    TransportClient.Builder builder = TransportClient.builder();

..more code

            builder = builder.addPlugin(shieldPluginClass); 

The addPlugin is no longer available. I need to add shieldPluginClass during transportClient. Any ideas or example how I do this in v 5.0?

Did you read https://www.elastic.co/guide/en/x-pack/current/java-clients.html ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.