Example #1
0
 @Override
 public void signalEvent(EventType eventType, Object eventData) {
   switch (eventType) {
     case CARD_RECOGNIZED:
       result = (ConnectionHandleType) eventData;
       cardAction.deliver(null);
       break;
     case CARD_REMOVED:
       result = (ConnectionHandleType) eventData;
       cardAction.deliver(null);
       break;
   }
 }
Example #2
0
 @Override
 public StepActionResult call() throws Exception {
   cardAction.deref();
   cardAction = new Promise<>();
   return new StepActionResult(StepActionResultStatus.REPEAT);
 }