class SyncCommand implements RemoteCommand<Nothing>, ComparableByContent<SyncCommand> {

    private final long unsynchronizedTokens;
    private final long nanosSinceLastSync;

    public static final SerializationHandle<SyncCommand> SERIALIZATION_HANDLE = new SerializationHandle<SyncCommand>() {
        @Override
        public <S> SyncCommand deserialize(DeserializationAdapter<S> adapter, S input) throws IOException {<FILL_FUNCTION_BODY>}

        @Override
        public <O> void serialize(SerializationAdapter<O> adapter, O output, SyncCommand command, Version backwardCompatibilityVersion, Scope scope) throws IOException {
            adapter.writeInt(output, v_7_0_0.getNumber());

            adapter.writeLong(output, command.unsynchronizedTokens);
            adapter.writeLong(output, command.nanosSinceLastSync);
        }

        @Override
        public int getTypeId() {
            return 36;
        }

        @Override
        public Class<SyncCommand> getSerializedType() {
            return SyncCommand.class;
        }

        @Override
        public SyncCommand fromJsonCompatibleSnapshot(Map<String, Object> snapshot) throws IOException {
            int formatNumber = readIntValue(snapshot, "version");
            Versions.check(formatNumber, v_7_0_0, v_7_0_0);

            long unsynchronizedTokens = readLongValue(snapshot, "unsynchronizedTokens");
            long nanosSinceLastSync = readLongValue(snapshot, "nanosSinceLastSync");
            return new SyncCommand(unsynchronizedTokens, nanosSinceLastSync);
        }

        @Override
        public Map<String, Object> toJsonCompatibleSnapshot(SyncCommand command, Version backwardCompatibilityVersion, Scope scope) throws IOException {
            Map<String, Object> result = new HashMap<>();
            result.put("version", v_7_0_0.getNumber());
            result.put("unsynchronizedTokens", command.unsynchronizedTokens);
            result.put("nanosSinceLastSync", command.nanosSinceLastSync);
            return result;
        }

        @Override
        public String getTypeName() {
            return "SyncCommand";
        }

    };

    public SyncCommand(long unsynchronizedTokens, long nanosSinceLastSync) {
        if (unsynchronizedTokens < 0) {
            throw BucketExceptions.nonPositiveTokensLimitToSync(unsynchronizedTokens);
        }
        if (nanosSinceLastSync < 0) {
            throw BucketExceptions.nonPositiveLimitToSync(nanosSinceLastSync);
        }
        this.unsynchronizedTokens = unsynchronizedTokens;
        this.nanosSinceLastSync = nanosSinceLastSync;
    }

    public long getNanosSinceLastSync() {
        return nanosSinceLastSync;
    }

    public long getUnsynchronizedTokens() {
        return unsynchronizedTokens;
    }

    @Override
    public CommandResult<Nothing> execute(MutableBucketEntry mutableEntry, long currentTimeNanos) {
        if (!mutableEntry.exists()) {
            return CommandResult.bucketNotFound();
        }
        RemoteBucketState state = mutableEntry.get();
        state.refillAllBandwidth(currentTimeNanos);
        mutableEntry.set(state);
        return CommandResult.NOTHING;
    }

    @Override
    public SerializationHandle getSerializationHandle() {
        return SERIALIZATION_HANDLE;
    }

    @Override
    public boolean equalsByContent(SyncCommand other) {
        return unsynchronizedTokens == other.unsynchronizedTokens
                && nanosSinceLastSync == other.nanosSinceLastSync;
    }

    @Override
    public boolean isImmediateSyncRequired(long unsynchronizedTokens, long nanosSinceLastSync) {
        return this.unsynchronizedTokens <= unsynchronizedTokens
                && this.nanosSinceLastSync <= nanosSinceLastSync;
    }

    @Override
    public long estimateTokensToConsume() {
        return 0L;
    }

    @Override
    public long getConsumedTokens(Nothing result) {
        return 0L;
    }

    @Override
    public Version getRequiredVersion() {
        return v_7_0_0;
    }

}

            int formatNumber = adapter.readInt(input);
            Versions.check(formatNumber, v_7_0_0, v_7_0_0);

            long unsynchronizedTokens = adapter.readLong(input);
            long nanosSinceLastSync = adapter.readLong(input);
            return new SyncCommand(unsynchronizedTokens, nanosSinceLastSync);
        
<no_super_class>