@Beta public abstract class DataLinkBase extends Object implements DataLink
DataLink implementations. Provides a ReferenceCounter. When the ref count gets to 0, calls the DataLink.destroy()
method.| Modifier | Constructor and Description |
|---|---|
protected |
DataLinkBase(DataLinkConfig config) |
| Modifier and Type | Method and Description |
|---|---|
DataLinkConfig |
getConfig()
Returns the configuration of this DataLink.
|
String |
getName()
Returns the name of this DataLink as specified in the
DataLinkConfig or the CREATE DATA LINK
command. |
void |
release()
Release a retained data link.
|
void |
retain()
Prevents the data link from being closed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, listResources, optionsprotected DataLinkBase(@Nonnull DataLinkConfig config)
@Nonnull public final String getName()
DataLinkDataLinkConfig or the CREATE DATA LINK
command.public final void retain()
DataLinkNote that the DataLink also isn't closed until all shared connections obtained from it are returned. This feature, together with the lock allows the processor to avoid concurrent close while it is using the connection.
public final void release()
DataLinkDataLink.retain() call, otherwise the data link will leak.@Nonnull public final DataLinkConfig getConfig()
DataLinkCopyright © 2023 Hazelcast, Inc.. All rights reserved.