com.eightkdata.mongowp.server.api.SafeRequestProcessor Maven / Gradle / Ivy
package com.eightkdata.mongowp.server.api;
import com.eightkdata.mongowp.messages.request.*;
import com.eightkdata.mongowp.messages.response.ReplyMessage;
import com.eightkdata.mongowp.server.api.impl.UpdateOpResult;
import com.eightkdata.mongowp.server.api.pojos.QueryRequest;
import com.eightkdata.mongowp.server.callback.WriteOpResult;
import com.eightkdata.mongowp.exceptions.CommandNotSupportedException;
import com.eightkdata.mongowp.exceptions.MongoException;
import com.google.common.util.concurrent.ListenableFuture;
import javax.annotation.Nonnull;
/**
*
*/
public interface SafeRequestProcessor extends CommandsExecutor{
public void onConnectionActive(Connection connection);
public void onConnectionInactive(Connection connection);
@Nonnull
public ReplyMessage getMore(Request request, GetMoreMessage getMoreMessage)
throws MongoException;
public ListenableFuture> killCursors(Request request, KillCursorsMessage killCursorsMessage)
throws MongoException;
public CommandsLibrary getCommandsLibrary();
@Override
public CommandReply execute(
Command super Arg, ? super Result> command,
CommandRequest request) throws MongoException, CommandNotSupportedException;
@Nonnull
public ReplyMessage query(Request request, QueryRequest queryMessage)
throws MongoException;
public ListenableFuture extends WriteOpResult> insert(Request request, InsertMessage insertMessage)
throws MongoException;
public ListenableFuture extends UpdateOpResult> update(Request request, UpdateMessage deleteMessage)
throws MongoException;
public ListenableFuture extends WriteOpResult> delete(Request request, DeleteMessage deleteMessage)
throws MongoException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy