Interface DataConnectionService

    • Method Detail

      • getAndRetainDataConnection

        @Nonnull
        <T extends DataConnection> T getAndRetainDataConnection​(java.lang.String name,
                                                                java.lang.Class<T> clazz)
        Returns DataConnection with the given name and `retain` it (calls DataConnection.retain()). The caller is responsible for calling DataConnection.release() after it is done with the DataConnection.

        Type is checked against the provided `clazz` argument.

        Parameters:
        name - name of the DataConnection
        clazz - expected type of the DataConnection
        Throws:
        HazelcastException - if the requested DataConnection doesn't exist, or has a different type than `clazz`