Package org.eclipse.net4j

# Klasse Net4jUtil

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

public final class Net4jUtil extends Object
A utility class with various static factory and convenience methods.

Autor:
  Eike Stepper

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final short`
`DEFAULT_BUFFER_CAPACITY`
`static final String`
`LOCAL_ACCEPTOR_DESCRIPTION`
`static final String`
`LOCAL_ACCEPTOR_TYPE`
`static final String`
`SCHEME_SEPARATOR`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static ITransportConfig`
`copyTransportConfig(org.eclipse.net4j.util.lifecycle.ILifecycle lifecycle, ITransportConfig source)`
`static IBufferProvider`
`createBufferFactory()`
`static IBufferProvider`
`createBufferFactory(short bufferCapacity)`
`static IBufferPool`
`createBufferPool()`
`static IBufferPool`
`createBufferPool(short bufferCapacity)`
`static IBufferPool`
`createBufferPool(IBufferProvider factory)`
`static IAcceptor`
`getAcceptor(org.eclipse.net4j.util.container.IManagedContainer container, String type, String description)`
`static IBufferProvider`
`getBufferProvider(org.eclipse.net4j.util.container.IManagedContainer container)`
`static IConnector`
`getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String description)`
`static IConnector`
`getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String type, String description)`
`static IConnector`
`getConnector(org.eclipse.net4j.util.container.IManagedContainer container, String type, String description, long timeout)`
`static ExecutorService`
`getExecutorService(org.eclipse.net4j.util.container.IManagedContainer container)`
`static IAcceptor`
`getLocalAcceptor(org.eclipse.net4j.util.container.IManagedContainer container)`
`static IConnector`
`getLocalConnector(org.eclipse.net4j.util.container.IManagedContainer container)`
`static int`
`getPooledBuffers(IBufferPool bufferPool)`
`static String`
`getProtocolID(IProtocol<?> protocol)`
`static int`
`getProtocolVersion(IProtocol<?> protocol)`
`static long`
`getProvidedBuffers(IBufferProvider bufferProvider)`
`static long`
`getRetainedBuffers(IBufferProvider bufferProvider)`
`static void`
`prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### SCHEME_SEPARATOR

public static final String SCHEME_SEPARATOR

Siehe auch:
  - Konstantenfeldwerte

### DEFAULT_BUFFER_CAPACITY

public static final short DEFAULT_BUFFER_CAPACITY

Siehe auch:
  - Konstantenfeldwerte

### LOCAL_ACCEPTOR_TYPE

public static final String LOCAL_ACCEPTOR_TYPE

Seit:
  4.18
Siehe auch:
  - Konstantenfeldwerte

### LOCAL_ACCEPTOR_DESCRIPTION

public static final String LOCAL_ACCEPTOR_DESCRIPTION

Seit:
  4.18
Siehe auch:
  - Konstantenfeldwerte

## Methodendetails

### 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)

Seit:
  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)

Seit:
  4.18

### getLocalConnector

public static IConnector getLocalConnector(org.eclipse.net4j.util.container.IManagedContainer container)

Seit:
  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)

Seit:
  2.0

### getProtocolID

public static String getProtocolID(IProtocol<?> protocol)

Seit:
  4.2

### getProtocolVersion

public static int getProtocolVersion(IProtocol<?> protocol)

Seit:
  4.2