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

com.eightkdata.mongowp.server.api.Connection Maven / Gradle / Ivy

There is a newer version: 0.50.0
Show newest version

package com.eightkdata.mongowp.server.api;

import com.eightkdata.mongowp.server.callback.WriteOpResult;
import io.netty.util.AttributeMap;
import java.util.concurrent.Future;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;

/**
 *
 */
@NotThreadSafe
public class Connection {

    private final int connectionId;
    private final AttributeMap attributeMap;
    private Future lastWriteOp;
    
    public Connection(int connectionId, AttributeMap attributeMap) {
        this.connectionId = connectionId;
        this.attributeMap = attributeMap;
    }

    public int getConnectionId() {
        return connectionId;
    }

    public AttributeMap getAttributeMap() {
        return attributeMap;
    }

    @Nullable
    public Future getAppliedLastWriteOp() {
        return lastWriteOp;
    }

    public void setAppliedWriteOp(Future lastWriteOp) {
        this.lastWriteOp = lastWriteOp;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy