* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.controller.cluster.datastore.messages;
+package org.opendaylight.controller.cluster.datastore.shardmanager;
import com.google.common.base.Preconditions;
import org.opendaylight.controller.cluster.raft.RaftState;
-public final class SwitchShardBehavior {
+final class SwitchShardBehavior {
private final String shardName;
private final RaftState newState;
private final long term;
- public SwitchShardBehavior(String shardName, RaftState newState, long term) {
+ SwitchShardBehavior(String shardName, RaftState newState, long term) {
this.shardName = Preconditions.checkNotNull(shardName);
this.newState = Preconditions.checkNotNull(newState);
this.term = term;
}
- public String getShardName() {
+ String getShardName() {
return shardName;
}
- public RaftState getNewState() {
+ RaftState getNewState() {
return newState;
}
- public long getTerm() {
+ long getTerm() {
return term;
}