blob: 53006cba07f926c7c2655f8470a5f92a5098d7cc [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You 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 org.apache.geode.internal.cache.persistence;
import java.util.Set;
import org.apache.geode.distributed.internal.ReplyException;
import org.apache.geode.internal.cache.CacheDistributionAdvisor;
public interface InternalPersistenceAdvisor extends PersistenceAdvisor {
default void beginWaitingForMembershipChange(Set<PersistentMemberID> membersToWaitFor) {}
void checkInterruptedByShutdownAll();
void clearEqualMembers();
default void endWaitingForMembershipChange() {}
Set<PersistentMemberID> getMembersToWaitFor(Set<PersistentMemberID> previouslyOnlineMembers,
Set<PersistentMemberID> offlineMembers) throws ReplyException;
boolean isClosed();
CacheDistributionAdvisor getCacheDistributionAdvisor();
void logWaitingForMembers();
void setWaitingOnMembers(Set<PersistentMemberID> allMembersToWaitFor,
Set<PersistentMemberID> offlineMembersToWaitFor);
}