%%%--------------------------------------------------------------------------- %%% Copyright (C) 2021, Skulup All Rights Reserved %%% Unauthorized copy of this file is through any medium strictly not allowed. %%% %%% Authors : Alpha Shaw %%% Created : 21 Apr 2021 by %%% Purpose : %%% %%% %%% 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. %%%--------------------------------------------------------------------------- -author("kaja"). -define(TABLE, ?MODULE). -define(ETS_STITCH_MIN_AGE_MS, 3600000). %% 1hr -define(ETS_ITEM_PURGE_TIMEOUT, 1000). -define(WAIT_TIMEOUT, 5000). -define(LOCK, {?MODULE, lock}). -define(DONE, {?MODULE, merge_done}). -define(DEFAULT_METHOD, {mnesplit_lib, merge_only, []}). -define(RESUBSCRIBE_TIMEOUT, 100). -define(EXPIRE_TIMEOUT, case net_kernel:get_net_ticktime() of ignored -> 60 + 1; {ongoing_change_to, Tick} -> Tick + 1; Tick -> Tick + 1 end). % seconds