static boolean mayInvokeDirect(GroupAndInvokeCount myGroupAndInvokeCount,AsynchronousChannelGroupImpl group){
  if ((myGroupAndInvokeCount != null) && (myGroupAndInvokeCount.group() == group) && (myGroupAndInvokeCount.invokeCount() < maxHandlerInvokeCount)) {
    return true;
  }
  return false;
}

static boolean mayInvokeDirect ( GroupAndInvokeCount myGroupAndInvokeCount , AsynchronousChannelGroupImpl group ) { if ( ( myGroupAndInvokeCount != null ) && ( myGroupAndInvokeCount . group ( ) == group ) && ( myGroupAndInvokeCount . invokeCount ( ) < maxHandlerInvokeCount ) ) { return true ; } return false ; }
returns true if the current thread is in the given channel ' s thread pool and we haven ' t exceeded the maximum number of handler frames on the stack .
