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

net.openhft.chronicle.map.channel.AbstractMapService Maven / Gradle / Ivy

package net.openhft.chronicle.map.channel;

import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.map.ChronicleMap;

/**
 * @param 
 * @param 
 */
public abstract class AbstractMapService implements MapService {
    protected transient ChronicleMap, VALUE> map;
    protected transient REPLY reply;
    private transient boolean closed;

    /**
     * Notify that the service should be closed
     */
    public void close() {
        closed = true;
    }

    public boolean isClosed() {
        return closed;
    }

    public void map(ChronicleMap, VALUE> map) {
        this.map = map;
    }

    @Override
    public void reply(REPLY reply) {
        this.reply = reply;
    }
}




© 2015 - 2026 Weber Informatics LLC | Privacy Policy