public interface DataLinkService
DataLink
s for Jet processors. A Jet
processor can obtain a reference to the service via ProcessorMetaSupplier.Context#dataLinkService()
.
DataLinks can be created via one of the following ways:
Config.addDataLinkConfig(DataLinkConfig)
CREATE DATA LINK ...
command
Modifier and Type | Method and Description |
---|---|
<T extends DataLink> |
getAndRetainDataLink(String name,
Class<T> clazz)
Returns
DataLink with the given name and `retain` it (calls
DataLink.retain() ). |
<T extends DataLink> T getAndRetainDataLink(String name, Class<T> clazz)
DataLink
with the given name and `retain` it (calls
DataLink.retain()
). The caller is responsible for calling
DataLink.release()
after it is done with the DataLink.
Type is checked against the provided `clazz` argument.
name
- name of the DataLinkclazz
- expected type of the DataLinkHazelcastException
- if the requested DataLink doesn't exist, or has
a different type than `clazz`Copyright © 2023 Hazelcast, Inc.. All rights reserved.