@Beta public class DataLinkConfig extends Object implements IdentifiedDataSerializable, NamedConfig
Constructor and Description |
---|
DataLinkConfig() |
DataLinkConfig(DataLinkConfig config) |
DataLinkConfig(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
String |
getClassName()
Returns the name of the
DataLink implementation class |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
String |
getName()
Returns the name of this data link.
|
Properties |
getProperties()
Returns all the properties of a data link
|
String |
getProperty(String key)
Returns a single property of a data link
|
int |
hashCode() |
boolean |
isShared()
true if an instance of the data link will be reused. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
DataLinkConfig |
setClassName(String className)
Sets the name for the
DataLink implementation class |
DataLinkConfig |
setName(String name)
Sets the name of this data link, the name must be unique.
|
DataLinkConfig |
setProperties(Properties properties)
Sets the properties of a data link.
|
DataLinkConfig |
setProperty(String key,
String value)
Sets a single property.
|
DataLinkConfig |
setShared(boolean shared)
true if an instance of the data link will be reused. |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public DataLinkConfig()
public DataLinkConfig(DataLinkConfig config)
public DataLinkConfig(String name)
public DataLinkConfig setName(String name)
setName
in interface NamedConfig
public String getName()
getName
in interface NamedConfig
public DataLinkConfig setClassName(@Nonnull String className)
DataLink
implementation classpublic boolean isShared()
true
if an instance of the data link will be reused. false
when on each usage
the data link instance should be created. The default is true
public DataLinkConfig setShared(boolean shared)
true
if an instance of the data link will be reused. false
when on each usage
the data link instance should be createdshared
- if the data link instance should be reusedpublic Properties getProperties()
@Nullable public String getProperty(String key)
key
- the property key of a data linkpublic DataLinkConfig setProperty(String key, String value)
setProperties(Properties)
key
- the property keyvalue
- the property valuepublic DataLinkConfig setProperties(Properties properties)
DataLink
for supported valuesproperties
- the properties to be setpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2023 Hazelcast, Inc.. All rights reserved.