小编Jea*_*rre的帖子

使用 MS Microsoft Graph 按类别获取和过滤 Outlook 事件

我正在尝试按类别过滤 Outlook 事件,但在查询时遇到问题。我尝试使用以下查询,但它们返回错误消息。

https://graph.microsoft.com/v1.0/me/events?$filter=startswith(Categories, 'test')

https://graph.microsoft.com/v1.0/me/events?$filter=contains(Categories, 'test')
Run Code Online (Sandbox Code Playgroud)

我得到以下输出

"code": "BadRequest",
"message": "The argument for an invocation of a function with name 'contains' is not a single value. All arguments for this function must be single values.",
Run Code Online (Sandbox Code Playgroud)

此查询的正确语法是什么?该图甚至支持按类别过滤事件吗?如果是这样,还有其他方法可以按类别过滤事件吗?

谢谢

outlook office365 microsoft-graph-api

2
推荐指数
1
解决办法
1851
查看次数

只进入第一个Thread,无法进入以下线程

我想使用多个线程处理数据,但目前只有第一个线程运行,然后它完全停止.

我正在尝试打印出Threads的名称,但我只是输入了第一个Thread.即使程序继续运行,它也会停止.它去了synchpoint.await()当时的停止.

public class Solver {
  final int N;
  final float[][] data;
  final CyclicBarrier barrier;

class Worker implements Runnable {
    public int myRow;
    String name;
    public CyclicBarrier synchPoint;

    Worker(CyclicBarrier barrier, int row, String name) {
        myRow = row;
        this.name = name;
        this.synchPoint = barrier;
        this.run();
    }

    public void run() {
            System.out.println("Name: " + name);
            processRow(myRow);
            mergeRows();

            try {
                System.out.print("In SynchPoint");
                synchPoint.await();
            } catch (InterruptedException ex) {
                return;
            } catch (BrokenBarrierException ex) {
                return;
            }
    }
}

public void …
Run Code Online (Sandbox Code Playgroud)

java multithreading

0
推荐指数
1
解决办法
37
查看次数