
com.alachisoft.ncache.client.internal.command.GetExpirationCommand Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.alachisoft.ncache.client.internal.command;
import com.alachisoft.ncache.common.protobuf.CommandProtocol;
import com.alachisoft.ncache.common.protobuf.GetExpirationCommandProtocol;
import com.alachisoft.ncache.runtime.exceptions.CommandException;
import java.io.IOException;
/**
* @author Basit Anwer
*/
public class GetExpirationCommand extends Command {
private GetExpirationCommandProtocol.GetExpirationCommand.Builder _getExpirationCommandBuilder;
public GetExpirationCommand(boolean isAsync) {
this.name = "GetEncryption";
this.isAsync = isAsync;
_getExpirationCommandBuilder = GetExpirationCommandProtocol.GetExpirationCommand.newBuilder();
_getExpirationCommandBuilder.setRequestId(super.getRequestId());
}
@Override
public CommandType getCommandType() {
return CommandType.GET_EXPIRATION;
}
@Override
protected void createCommand() throws CommandException {
CommandProtocol.Command.Builder commandBuilder =
CommandProtocol.Command.newBuilder();
commandBuilder.setGetExpirationCommand(_getExpirationCommandBuilder)
.setRequestID(this.getRequestId())
.setVersion(Command.VERSION)
.setType(CommandProtocol.Command.Type.GET_EXPIRATION);
_command = commandBuilder.build();
}
@Override
public RequestType getCommandRequestType() {
return RequestType.InternalCommand;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy