public interface DataConnectionService
DataConnection
s for Jet processors. A Jet
processor can obtain a reference to the service via ProcessorMetaSupplier.Context#dataConnectionService()
.
Data connections can be created via one of the following ways:
Config.addDataConnectionConfig(DataConnectionConfig)
CREATE DATA CONNECTION ...
command
Modifier and Type | Method and Description |
---|---|
<T extends DataConnection> |
getAndRetainDataConnection(String name,
Class<T> clazz)
Returns
DataConnection with the given name and `retain` it (calls
DataConnection.retain() ). |
@Nonnull <T extends DataConnection> T getAndRetainDataConnection(String name, Class<T> clazz)
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 DataConnectionclazz
- expected type of the DataConnectionHazelcastException
- if the requested DataConnection doesn't exist, or has
a different type than `clazz`Copyright © 2023 Hazelcast, Inc.. All rights reserved.