NIOTransport.unbindAll
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.glassfish.grizzly.nio.NIOTransport.unbindAll(Showing top 12 results out of 315)

  • Common ways to obtain NIOTransport
private void myMethod () {
NIOTransport n =
  • String name;new TCPNIOTransport(name)
  • String name;new UDPNIOTransport(name)
  • Smart code suggestions by Codota
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * {@inheritDoc}
 */
@Override
public void shutdownNow() throws IOException {
  final Lock lock = state.getStateLocker().writeLock();
  lock.lock();
  try {
    final State stateNow = state.getState();
    if (stateNow == State.STOPPED) {
      return;
    }
    if (stateNow == State.PAUSED) {
      // if Transport is paused - first we need to resume it
      // so selectorrunners can perform the close phase
      resume();
    }
    
    state.setState(State.STOPPING);
    unbindAll();
    finalizeShutdown();
  } finally {
    lock.unlock();
  }
}
origin: org.glassfish.grizzly/grizzly-core

unbindAll();
origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Override
public void shutdownNow() throws IOException {
  final Lock lock = state.getStateLocker().writeLock();
  lock.lock();
  try {
    final State stateNow = state.getState();
    if (stateNow == State.STOPPED) {
      return;
    }
    if (stateNow == State.PAUSED) {
      // if Transport is paused - first we need to resume it
      // so selectorrunners can perform the close phase
      resume();
    }
    
    state.setState(State.STOPPING);
    unbindAll();
    finalizeShutdown();
  } finally {
    lock.unlock();
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public void shutdownNow() throws IOException {
  final Lock lock = state.getStateLocker().writeLock();
  lock.lock();
  try {
    final State stateNow = state.getState();
    if (stateNow == State.STOPPED) {
      return;
    }
    if (stateNow == State.PAUSED) {
      // if Transport is paused - first we need to resume it
      // so selectorrunners can perform the close phase
      resume();
    }
    
    state.setState(State.STOPPING);
    unbindAll();
    finalizeShutdown();
  } finally {
    lock.unlock();
  }
}
origin: org.glassfish.grizzly/grizzly-http-all

/**
 * {@inheritDoc}
 */
@Override
public void shutdownNow() throws IOException {
  final Lock lock = state.getStateLocker().writeLock();
  lock.lock();
  try {
    final State stateNow = state.getState();
    if (stateNow == State.STOPPED) {
      return;
    }
    if (stateNow == State.PAUSED) {
      // if Transport is paused - first we need to resume it
      // so selectorrunners can perform the close phase
      resume();
    }
    
    state.setState(State.STOPPING);
    unbindAll();
    finalizeShutdown();
  } finally {
    lock.unlock();
  }
}
origin: org.glassfish.grizzly/grizzly-framework

/**
 * {@inheritDoc}
 */
@Override
public void shutdownNow() throws IOException {
  final Lock lock = state.getStateLocker().writeLock();
  lock.lock();
  try {
    final State stateNow = state.getState();
    if (stateNow == State.STOPPED) {
      return;
    }
    if (stateNow == State.PAUSED) {
      // if Transport is paused - first we need to resume it
      // so selectorrunners can perform the close phase
      resume();
    }
    
    state.setState(State.STOPPING);
    unbindAll();
    finalizeShutdown();
  } finally {
    lock.unlock();
  }
}
origin: org.glassfish.tyrus.bundles/tyrus-standalone-client

/**
 * {@inheritDoc}
 */
@Override
public void shutdownNow() throws IOException {
  final Lock lock = state.getStateLocker().writeLock();
  lock.lock();
  try {
    final State stateNow = state.getState();
    if (stateNow == State.STOPPED) {
      return;
    }
    if (stateNow == State.PAUSED) {
      // if Transport is paused - first we need to resume it
      // so selectorrunners can perform the close phase
      resume();
    }
    
    state.setState(State.STOPPING);
    unbindAll();
    finalizeShutdown();
  } finally {
    lock.unlock();
  }
}
origin: org.glassfish.grizzly/grizzly-framework

unbindAll();
origin: org.glassfish.grizzly/grizzly-http-server-core

unbindAll();
origin: org.glassfish.grizzly/grizzly-http-all

unbindAll();
origin: org.glassfish.tyrus.bundles/tyrus-standalone-client

unbindAll();
origin: org.glassfish.grizzly/grizzly-websockets-server

unbindAll();
org.glassfish.grizzly.nioNIOTransportunbindAll

Popular methods of NIOTransport

  • setIOStrategy
  • setProcessor
  • setSelectorRunnersCount
    Sets the number of SelectorRunners used for handling NIO events.
  • getAttributeBuilder
  • setMemoryManager
  • setNIOChannelDistributor
  • setReadBufferSize
  • setWorkerThreadPoolConfig
  • setWriteBufferSize
  • getSelectorHandler
  • setKernelThreadPoolConfig
  • getMemoryManager
  • setKernelThreadPoolConfig,
  • getMemoryManager,
  • closeConnection,
  • createShutdownExecutorService,
  • createTemporarySelectorIO,
  • finalizeShutdown,
  • fireIOEvent,
  • getAsyncQueueIO,
  • getDefaultSelectorRunnersCount,
  • getIOStrategy

Popular classes and methods

  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PrintStream (java.io)
    Wraps an existing OutputStream and provides convenience methods for writing common data types in a h
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)