[
https://issues.apache.org/jira/browse/HDDS-12541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated HDDS-12541:
------------------------------
Description:
In order to change ContainerID to be a [value-based
class|https://docs.oracle.com/javase/8/docs/api/java/lang/doc-files/ValueBased.html],
we must enforce factory method (i.e. disallow directly calling constructors).
We also improve its efficiency here:
- Cache proto and hash.
- Avoid apache.commons.lang3.
was:
ContainerID should be a [value-based
class|https://docs.oracle.com/javase/8/docs/api/java/lang/doc-files/ValueBased.html];
see
We must enforce factory method (i.e. disallow directly calling constructors)
We also improve its efficiency here:
- Cache proto and hash.
- Avoid apache.commons.lang3.
> Change ContainerID to value-based
> ---------------------------------
>
> Key: HDDS-12541
> URL: https://issues.apache.org/jira/browse/HDDS-12541
> Project: Apache Ozone
> Issue Type: Improvement
> Components: common
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
>
> In order to change ContainerID to be a [value-based
> class|https://docs.oracle.com/javase/8/docs/api/java/lang/doc-files/ValueBased.html],
> we must enforce factory method (i.e. disallow directly calling constructors).
> We also improve its efficiency here:
> - Cache proto and hash.
> - Avoid apache.commons.lang3.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]