All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.chunk.util.pools.ObjectChunkPool Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.chunk.util.pools;

import io.deephaven.chunk.ResettableObjectChunk;
import io.deephaven.chunk.ResettableReadOnlyChunk;
import io.deephaven.chunk.ResettableWritableChunk;
import io.deephaven.chunk.ResettableWritableObjectChunk;
import io.deephaven.chunk.WritableChunk;
import io.deephaven.chunk.WritableObjectChunk;
import io.deephaven.chunk.attributes.Any;
import org.jetbrains.annotations.NotNull;

public interface ObjectChunkPool {
    ChunkPool asChunkPool();

     WritableObjectChunk takeWritableObjectChunk(int capacity);

    void giveWritableObjectChunk(@NotNull WritableObjectChunk writableObjectChunk);

     ResettableObjectChunk takeResettableObjectChunk();

    void giveResettableObjectChunk(@NotNull ResettableObjectChunk resettableObjectChunk);

     ResettableWritableObjectChunk takeResettableWritableObjectChunk();

    void giveResettableWritableObjectChunk(@NotNull ResettableWritableObjectChunk resettableWritableObjectChunk);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy