
io.atomix.copycat.protocol.OperationRequest Maven / Gradle / Ivy
/*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.atomix.copycat.protocol;
import io.atomix.catalyst.buffer.BufferInput;
import io.atomix.catalyst.buffer.BufferOutput;
import io.atomix.catalyst.serializer.Serializer;
import io.atomix.catalyst.util.Assert;
import io.atomix.copycat.Operation;
/**
* Client operation request.
*
* Operation requests are sent by clients to servers to execute operations on the replicated state
* machine. Each operation request must be sequenced with a {@link #sequence()} number. All operations
* will be applied to replicated state machines in the sequence in which they were sent by the client.
* Sequence numbers must always be sequential, and in the event that an operation request fails, it must
* be resent by the client.
*
* @author
© 2015 - 2025 Weber Informatics LLC | Privacy Policy