Tabnine Logo
Condition.check
Code IndexAdd Tabnine to your IDE (free)

How to use
check
method
in
org.glassfish.grizzly.utils.conditions.Condition

Best Java code snippets using org.glassfish.grizzly.utils.conditions.Condition.check (Showing top 20 results out of 315)

origin: javaee/grizzly

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: javaee/grizzly

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: javaee/grizzly

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: javaee/grizzly

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: javaee/grizzly

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: javaee/grizzly

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-core

protected void notifyConditionListeners() {
  Iterator<ConditionElement<E>> it = conditionListeners.iterator();
  while(it.hasNext()) {
    ConditionElement<E> element = it.next();
    try {
      if (element.condition.check()) {
        it.remove();
        if (element.completionHandler != null) {
          element.completionHandler.completed(state);
        }
        element.future.result(state);
      }
    } catch(Exception e) {
      _logger.log(Level.WARNING,
          LogMessages.WARNING_GRIZZLY_STATE_HOLDER_CALLING_CONDITIONLISTENER_EXCEPTION(),
          e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: org.mule.glassfish.grizzly/grizzly-framework

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: javaee/grizzly

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-core

private void notifyUpdate() {
  if (condition != null && condition.check()) {
    condition = null;
    final CompletionHandler<Integer> localCompletionHandler = completionHandler;
    completionHandler = null;
    final FutureImpl<Integer> localFuture = future;
    future = null;
    isCompletionHandlerRegistered = false;
    try {
      
      onCloseInputSource();
      notifyCompleted(localCompletionHandler);
      localFuture.result(compositeBuffer.remaining());
    } catch(IOException e) {
      notifyFailure(localCompletionHandler, e);
      localFuture.failure(e);
    }
  }
}
org.glassfish.grizzly.utils.conditionsConditioncheck

Popular methods of Condition

    Popular in Java

    • Reactive rest calls using spring rest template
    • putExtra (Intent)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • setRequestProperty (URLConnection)
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • Kernel (java.awt.image)
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • Date (java.util)
      A specific moment in time, with millisecond precision. Values typically come from System#currentTime
    • LinkedList (java.util)
      Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now