Interface DataConnectionService

    • Method Detail

      • getAndRetainDataConnection

        <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.

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