![JAR search and dependency download from the Maven repository](/logo.png)
com.alachisoft.ncache.client.internal.command.ModuleCommand Maven / Gradle / Ivy
package com.alachisoft.ncache.client.internal.command;
import com.alachisoft.ncache.common.protobuf.ModuleCommandProtocol;
import com.alachisoft.ncache.runtime.exceptions.CommandException;
import com.google.protobuf.ByteString;
import java.util.ArrayList;
import java.util.List;
public class ModuleCommand extends Command
{
private String module;
private String version;
private byte[] value;
protected com.alachisoft.ncache.common.protobuf.MessagePublishCommandProtocol.MessagePublishCommand _commandInstance;
public ModuleCommand(byte[] value, String module, String version)
{
this.module= module;
this.version= version;
this.value= value;
}
@Override
public boolean getSupportsSurrogation()
{
return true;
}
@Override
public RequestType getCommandRequestType()
{
return RequestType.KeyBulkWrite;
}
@Override
public CommandType getCommandType()
{
return getCommandType().MODULE;
}
@Override
protected void createCommand() throws CommandException {
ModuleCommandProtocol.ModuleCommand.Builder _moduleCommandbuilder = ModuleCommandProtocol.ModuleCommand.newBuilder();
_moduleCommandbuilder.setRequestId(getRequestId())
.addPayload(ByteString.copyFrom(value))
.setModule(module)
.setVersion(version)
.setVersion(VERSION)
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy