Interface ITransportConfig
- All Superinterfaces:
org.eclipse.net4j.util.security.INegotiatorAware
public interface ITransportConfig
extends org.eclipse.net4j.util.security.INegotiatorAware
A common transport configuration that specifies basic dependencies for
channel
multiplexers, connectors and acceptors.- Since:
- 2.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.net4j.util.lifecycle.ILifecycleReturns the lifecycle delegate used for inactivity checks in the setter implementations of this transport configuration.Returns the executor used for transport receive work and exposed to channel protocols.voidsetBufferProvider(IBufferProvider bufferProvider) voidsetLifecycle(org.eclipse.net4j.util.lifecycle.ILifecycle lifecycle) Sets the lifecycle delegate to be used for inactivity checks in the setter implementations of this transport configuration.voidsetProtocolProvider(IProtocolProvider protocolProvider) voidsetReceiveExecutor(ExecutorService receiveExecutor) Methods inherited from interface org.eclipse.net4j.util.security.INegotiatorAware
getNegotiator, setNegotiator
-
Method Details
-
getLifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle getLifecycle()Returns the lifecycle delegate used for inactivity checks in the setter implementations of this transport configuration. -
setLifecycle
void setLifecycle(org.eclipse.net4j.util.lifecycle.ILifecycle lifecycle) Sets the lifecycle delegate to be used for inactivity checks in the setter implementations of this transport configuration. -
getBufferProvider
IBufferProvider getBufferProvider() -
setBufferProvider
-
getReceiveExecutor
ExecutorService getReceiveExecutor()Returns the executor used for transport receive work and exposed to channel protocols. Callers must provide enough capacity for handlers and protocols that may block. In particular, blocking signal reactors can occupy workers and prevent other receive work from progressing;SignalProtocoluses this executor directly for unordered reactors and as the delegate for its default serial reactor lanes. -
setReceiveExecutor
-
getProtocolProvider
IProtocolProvider getProtocolProvider() -
setProtocolProvider
-