コード例 #1
0
 private void checkWorkerContext() {
   Thread t = Thread.currentThread();
   if (!t.getName().startsWith("vert.x-worker-thread")) {
     throw new IllegalStateException("Not a worker thread");
   }
 }