com.github.tonivade.resp.command.Request Maven / Gradle / Ivy
/*
* Copyright (c) 2015-2020, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.resp.command;
import com.github.tonivade.purefun.data.ImmutableArray;
import com.github.tonivade.purefun.type.Option;
import com.github.tonivade.resp.protocol.SafeString;
public interface Request {
String getCommand();
ImmutableArray getParams();
SafeString getParam(int i);
Option getOptionalParam(int i);
int getLength();
boolean isEmpty();
Session getSession();
ServerContext getServerContext();
boolean isExit();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy