Class Net4jUtil

java.lang.Object
org.eclipse.net4j.Net4jUtil

public final class Net4jUtil extends Object
A utility class with various static factory and convenience methods.
Author:
Eike Stepper
  • Field Details

  • Method Details

    • prepareContainer

      public static void prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container)
    • getExecutorService

      public static ExecutorService getExecutorService(org.eclipse.net4j.util.container.IManagedContainer container)
    • getBufferProvider

      public static IBufferProvider getBufferProvider(org.eclipse.net4j.util.container.IManagedContainer container)
    • getAcceptor

      public static IAcceptor getAcceptor(org.eclipse.net4j.util.container.IManagedContainer container, String type, String description)
    • getConnector

      public static IConnector getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String type, String description, long timeout)
      Since:
      4.0
    • getConnector

      public static IConnector getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String type, String description)
    • getConnector

      public static IConnector getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String description)
    • getLocalAcceptor

      public static IAcceptor getLocalAcceptor(org.eclipse.net4j.util.container.IManagedContainer container)
      Since:
      4.18
    • getLocalConnector

      public static IConnector getLocalConnector(org.eclipse.net4j.util.container.IManagedContainer container)
      Since:
      4.18
    • createBufferFactory

      public static IBufferProvider createBufferFactory(short bufferCapacity)
    • createBufferFactory

      public static IBufferProvider createBufferFactory()
    • createBufferPool

      public static IBufferPool createBufferPool(IBufferProvider factory)
    • createBufferPool

      public static IBufferPool createBufferPool(short bufferCapacity)
    • createBufferPool

      public static IBufferPool createBufferPool()
    • getProvidedBuffers

      public static long getProvidedBuffers(IBufferProvider bufferProvider)
    • getRetainedBuffers

      public static long getRetainedBuffers(IBufferProvider bufferProvider)
    • getPooledBuffers

      public static int getPooledBuffers(IBufferPool bufferPool)
    • copyTransportConfig

      public static ITransportConfig copyTransportConfig(org.eclipse.net4j.util.lifecycle.ILifecycle lifecycle, ITransportConfig source)
      Since:
      2.0
    • getProtocolID

      public static String getProtocolID(IProtocol<?> protocol)
      Since:
      4.2
    • getProtocolVersion

      public static int getProtocolVersion(IProtocol<?> protocol)
      Since:
      4.2