Skip to content

Commit

Permalink
set final class for some class
Browse files Browse the repository at this point in the history
Change-Id: I75b25240585773932602c54610e38324285c42ca
  • Loading branch information
javeme committed Apr 19, 2021
1 parent 5546dcf commit 474f461
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import com.baidu.hugegraph.backend.BackendException;
import com.baidu.hugegraph.util.Log;

public class RaftClosure<T> implements Closure {
public final class RaftClosure<T> implements Closure {

private static final Logger LOG = Log.logger(StoreClosure.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.alipay.sofa.jraft.Status;
import com.baidu.hugegraph.util.E;

public class RaftResult<T> {
public final class RaftResult<T> {

private final Status status;
private final Supplier<T> callback;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public final class RaftSharedContext {
public static final int WAIT_LEADER_TIMEOUT = 5 * 60 * 1000;
public static final int BUSY_SLEEP_FACTOR = 3 * 1000;
public static final int WAIT_RPC_TIMEOUT = 30 * 60 * 1000;
public static final int LOG_WARN_INTERVAL = 60 * 1000;

// compress block size
public static final int BLOCK_SIZE = (int) (Bytes.KB * 8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import com.baidu.hugegraph.util.E;

public class StoreClosure extends RaftClosure<Object> {
public final class StoreClosure extends RaftClosure<Object> {

private final StoreCommand command;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.baidu.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction;
import com.baidu.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType;

public class StoreCommand {
public final class StoreCommand {

public static final int HEADER_SIZE = 2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import com.baidu.hugegraph.type.define.SerialEnum;
import com.baidu.hugegraph.util.Bytes;

public class StoreSerializer {
public final class StoreSerializer {

private static final int MUTATION_SIZE = (int) (1 * Bytes.MB);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import com.baidu.hugegraph.util.LZ4Util;
import com.baidu.hugegraph.util.Log;

public class StoreStateMachine extends StateMachineAdapter {
public final class StoreStateMachine extends StateMachineAdapter {

private static final Logger LOG = Log.logger(StoreStateMachine.class);

Expand Down

0 comments on commit 474f461

Please sign in to comment.