org.eclipse.net4j
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEME_SEPARATOR
public static final String SCHEME_SEPARATOR
- See Also:
- Constant Field Values
DEFAULT_BUFFER_CAPACITY
public static final short DEFAULT_BUFFER_CAPACITY
- See Also:
- Constant Field Values
prepareContainer
public static void prepareContainer(IManagedContainer container)
getExecutorService
public static ExecutorService getExecutorService(IManagedContainer container)
getBufferProvider
public static IBufferProvider getBufferProvider(IManagedContainer container)
getAcceptor
public static IAcceptor getAcceptor(IManagedContainer container,
String type,
String description)
getConnector
public static IConnector getConnector(IManagedContainer container,
String type,
String description,
long timeout)
- Since:
- 4.0
getConnector
public static IConnector getConnector(IManagedContainer container,
String type,
String description)
getConnector
public static IConnector getConnector(IManagedContainer container,
String description)
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(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
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.