@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, wait
destroy, listResources, options
protected DataLinkBase(@Nonnull DataLinkConfig config)
@Nonnull public final String getName()
DataLink
DataLinkConfig
or the CREATE DATA LINK
command.public final void retain()
DataLink
Note 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()
DataLink
DataLink.retain()
call, otherwise the data link will leak.@Nonnull public final DataLinkConfig getConfig()
DataLink
Copyright © 2023 Hazelcast, Inc.. All rights reserved.