Package org.eclipse.net4j
Class Net4jUtil
java.lang.Object
org.eclipse.net4j.Net4jUtil
A utility class with various static factory and convenience methods.
- Author:
- Eike Stepper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ITransportConfig
copyTransportConfig
(org.eclipse.net4j.util.lifecycle.ILifecycle lifecycle, ITransportConfig source) static IBufferProvider
static IBufferProvider
createBufferFactory
(short bufferCapacity) static IBufferPool
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)
-
Field Details
-
SCHEME_SEPARATOR
- See Also:
-
DEFAULT_BUFFER_CAPACITY
public static final short DEFAULT_BUFFER_CAPACITY- See Also:
-
LOCAL_ACCEPTOR_TYPE
- Since:
- 4.18
- See Also:
-
LOCAL_ACCEPTOR_DESCRIPTION
- Since:
- 4.18
- See Also:
-
-
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
-
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
-
createBufferFactory
-
createBufferPool
-
createBufferPool
-
createBufferPool
-
getProvidedBuffers
-
getRetainedBuffers
-
getPooledBuffers
-
copyTransportConfig
public static ITransportConfig copyTransportConfig(org.eclipse.net4j.util.lifecycle.ILifecycle lifecycle, ITransportConfig source) - Since:
- 2.0
-
getProtocolID
- Since:
- 4.2
-
getProtocolVersion
- Since:
- 4.2
-