Class PreBuiltTransportClient

    • Constructor Detail

      • PreBuiltTransportClient

        @SafeVarargs
        public PreBuiltTransportClient​(Settings settings,
                                       java.lang.Class<? extends Plugin>... plugins)
        Deprecated.
        Creates a new transport client with pre-installed plugins.
        Parameters:
        settings - the settings passed to this transport client
        plugins - an optional array of additional plugins to run with this client
      • PreBuiltTransportClient

        public PreBuiltTransportClient​(Settings settings,
                                       java.util.Collection<java.lang.Class<? extends Plugin>> plugins)
        Deprecated.
        Creates a new transport client with pre-installed plugins.
        Parameters:
        settings - the settings passed to this transport client
        plugins - a collection of additional plugins to run with this client
      • PreBuiltTransportClient

        public PreBuiltTransportClient​(Settings settings,
                                       java.util.Collection<java.lang.Class<? extends Plugin>> plugins,
                                       TransportClient.HostFailureListener hostFailureListener)
        Deprecated.
        Creates a new transport client with pre-installed plugins.
        Parameters:
        settings - the settings passed to this transport client
        plugins - a collection of additional plugins to run with this client
        hostFailureListener - a failure listener that is invoked if a node is disconnected; this can be null
    • Method Detail

      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Releasable
        Overrides:
        close in class TransportClient