Reduce ChronicleMapBuilder API surface, hide private API in a class

This commit is contained in:
leventov
2015-08-05 02:57:12 +03:00
parent 8afd90c528
commit 2b6c871562
7 changed files with 168 additions and 70 deletions
@@ -0,0 +1,38 @@
/*
* Copyright (C) 2015 higherfrequencytrading.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.openhft.chronicle.hash;
import net.openhft.chronicle.hash.serialization.internal.SerializationBuilder;
public interface ChronicleHashBuilderPrivateAPI<K> {
SerializationBuilder<K> keyBuilder();
int segmentEntrySpaceInnerOffset(boolean replicated);
long chunkSize(boolean replicated);
int maxChunksPerEntry(boolean replicated);
long entriesPerSegment(boolean replicated);
long actualChunksPerSegment(boolean replicated);
int segmentHeaderSize(boolean replicated);
int actualSegments(boolean replicated);
}