operator/src/main/java/oracle/kubernetes/operator/work/Fiber.java
@Override
  public void terminate(Throwable t, Packet packet) {
    if (t == null) {
      throw new IllegalArgumentException();
    }

    if (LOGGER.isFinerEnabled()) {
      LOGGER.finer("{0} terminated", getName());
    }

    lock.lock();
    try {
      if (na.kind != Kind.SUSPEND) {
        throw new IllegalStateException();
      }
      na.terminate(t, packet);

      addBreadCrumb(na);
      completionCheck();
    } finally {
      lock.unlock();
    }
  }
/**
   * Terminates fiber with throwable. Must be called while the fiber is suspended.
   *
   * @param t Throwable
   * @param packet Packet
   */
Terminates fiber with throwable. Must be called while the fiber is suspended.
@param t Throwable
@param packet Packet
Terminates fiber with throwable . Must be called while the fiber is suspended . @param t Throwable @param packet Packet
@Override
  public void terminate(Throwable t, Packet packet) {
    if (t == null) {
      throw new IllegalArgumentException();
    }
    if (LOGGER.isFinerEnabled()) {
      LOGGER.finer("{0} terminated", getName());
    }
    lock.lock();
    try {
      if (na.kind != Kind.SUSPEND) {
        throw new IllegalStateException();
      }
      na.terminate(t, packet);
      addBreadCrumb(na);
      completionCheck();
    } finally {
      lock.unlock();
    }
  }
@ Override public void terminate ( Throwable t , Packet packet ) { if ( t == null ) { throw new IllegalArgumentException ( ) ; } if ( LOGGER . isFinerEnabled ( ) ) { LOGGER . finer ( "{0} terminated" , getName ( ) ) ; } lock . lock ( ) ; try { if ( na . kind != Kind . SUSPEND ) { throw new IllegalStateException ( ) ; } na . terminate ( t , packet ) ; addBreadCrumb ( na ) ; completionCheck ( ) ; } finally { lock . unlock ( ) ; } }
Terminates fiber with throwable.
Terminates fiber with throwable .