コード例 #1
0
 public void onMessage(Message message) {
   this.message = message;
   latch.countDown();
   try {
     released.whenTrue(null);
   } catch (InterruptedException e) {
     // ignored
   }
 }
コード例 #2
0
 public void onNotification(SecurityNotification notification) {
   securityNotification = notification;
   latch.countDown();
 }