DataType
- The type of the data to put in the cluster.public class DefaultClusterCreator<DataType> extends AbstractCloneableSerializable implements ClusterCreator<DefaultCluster<DataType>,DataType>
DefaultClusterCreator
class implements a default
ClusterCreator
that just creates a DefaultCluster
from the
given list of members.Constructor and Description |
---|
DefaultClusterCreator()
Creates a new
DefaultClusterCreator . |
Modifier and Type | Method and Description |
---|---|
DefaultCluster<DataType> |
createCluster(java.util.Collection<? extends DataType> members)
Creates a new
DefaultCluster from the given list of members. |
clone
public DefaultClusterCreator()
DefaultClusterCreator
.public DefaultCluster<DataType> createCluster(java.util.Collection<? extends DataType> members)
DefaultCluster
from the given list of members.createCluster
in interface ClusterCreator<DefaultCluster<DataType>,DataType>
members
- The cluster members.