public class CountDownLatchConfig extends Object implements IdentifiedDataSerializable, Versioned, NamedConfig
ICountDownLatch
.Constructor and Description |
---|
CountDownLatchConfig()
Creates a default configured
CountDownLatchConfig . |
CountDownLatchConfig(CountDownLatchConfig config)
Creates a CountDownLatchConfig by cloning another one.
|
CountDownLatchConfig(String name)
Creates a default configured
CountDownLatchConfig setting its name to the given name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CountDownLatchConfig |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
String |
getName()
Gets the name of the CountDownLatch.
|
String |
getQuorumName() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
CountDownLatchConfig |
setName(String name)
Sets the name of the CountDownLatch.
|
CountDownLatchConfig |
setQuorumName(String quorumName) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public CountDownLatchConfig()
CountDownLatchConfig
.public CountDownLatchConfig(String name)
CountDownLatchConfig
setting its name to the given name.name
- name to setpublic CountDownLatchConfig(CountDownLatchConfig config)
config
- the CountDownLatchConfig to copyIllegalArgumentException
- if config is null
public CountDownLatchConfig getAsReadOnly()
public String getName()
null
is returned.getName
in interface NamedConfig
public CountDownLatchConfig setName(String name)
setName
in interface NamedConfig
name
- the name of the CountDownLatchIllegalArgumentException
- if name is null
or emptypublic String getQuorumName()
public CountDownLatchConfig setQuorumName(String quorumName)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public 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.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.