class GrpcLeaderServerInterceptor implements ServerInterceptor {

    public static GrpcLeaderServerInterceptor clusterMembershipAllowed(LeaderActivationStatus leaderActivationStatus) {
        return new GrpcLeaderServerInterceptor(leaderActivationStatus, Collections.singletonList(ClusterMembershipServiceGrpc.getServiceDescriptor()));
    }

    public  GrpcLeaderServerInterceptor(LeaderActivationStatus leaderActivationStatus,
                                       List<ServiceDescriptor> notProtectedServices);

}