Tabnine Logo
DefaultSelectionKeyHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultSelectionKeyHandler
in
org.glassfish.grizzly.nio

Best Java code snippets using org.glassfish.grizzly.nio.DefaultSelectionKeyHandler (Showing top 20 results out of 315)

origin: org.glassfish.grizzly/grizzly-websockets-server

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: javaee/grizzly

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: javaee/grizzly

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: javaee/grizzly

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: javaee/grizzly

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: javaee/grizzly

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: javaee/grizzly

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: javaee/grizzly

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: org.mule.glassfish.grizzly/grizzly-framework

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: javaee/grizzly

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: javaee/grizzly

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: javaee/grizzly

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: org.glassfish.grizzly/grizzly-core

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
origin: javaee/grizzly

@SuppressWarnings("unchecked")
static SelectionKeyHandler initHandler() {
  final String className = System.getProperty(PROP);
  if (className != null) {
    try {
      Class<? extends SelectionKeyHandler> handlerClass = (Class<? extends SelectionKeyHandler>)
          Class.forName(className, 
                 true, 
                 SelectionKeyHandler.class.getClassLoader());
      return handlerClass.newInstance();
    } catch (Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,
            "Unable to load or create a new instance of SelectionKeyHandler {0}.  Cause: {1}",
            new Object[]{className, e.getMessage()});
      }
      if (LOGGER.isLoggable(Level.FINE)) {
        LOGGER.log(Level.FINE, e.toString(), e);
      }
      return new DefaultSelectionKeyHandler();
    }
  }
  return new DefaultSelectionKeyHandler();
}
origin: javaee/grizzly

@Override
public void cancel(SelectionKey key) throws IOException {
  onKeyDeregistered(key);
  key.cancel();
}
org.glassfish.grizzly.nioDefaultSelectionKeyHandler

Most used methods

  • <init>
  • onKeyDeregistered

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JCheckBox (javax.swing)
  • JFrame (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
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