Transport. Implements common transport functionality.
| Modifier and Type | Field and Description |
|---|---|
| protected AttributeBuilder | attributeBuilder
Transport AttributeBuilder, which will be used to create Attributes |
| protected final DefaultMonitoringConfig | connectionMonitoringConfig
Connection probes |
| protected volatile boolean | isBlocking
Transport mode |
| protected volatile boolean | isStandalone
Deprecated
|
| protected ExecutorService | kernelPool
Kernel thread pool. |
| protected ThreadPoolConfig | |
| protected boolean | |
| protected MemoryManager | memoryManager
Transport MemoryManager |
| protected String | name
Transport name |
| protected Processor | processor
Transport default Processor |
| protected ProcessorSelector | processorSelector
Transport default ProcessorSelector |
| protected int | readBufferSize
Transport default buffer size for read operations |
| protected long | |
| protected final StateHolder | state
Transport state controller |
| protected IOStrategy | strategy
Transport strategy |
| protected final DefaultMonitoringConfig | threadPoolMonitoringConfig
Thread pool probes |
| protected final DefaultMonitoringConfig | transportMonitoringConfig
Transport probes |
| protected ThreadPoolConfig | |
| protected ExecutorService | workerThreadPool
Worker thread pool |
| protected int | writeBufferSize
Transport default buffer size for write operations |
| protected long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public void | configureBlocking(boolean isBlocking)
Implements org. Sets the |
| protected abstract Object | Returns: the Transport JMX management object.Create the Transport JMX management object. |
| public AttributeBuilder | getAttributeBuilder()
Implements org. Get |
| public MonitoringConfig | getConnectionMonitoringConfig()
Implements org. Get the monitoring configuration for Transport |
| public IOStrategy | getIOStrategy()
Implements org. Get the |
| public ExecutorService | |
| public ThreadPoolConfig | |
| public MemoryManager | getMemoryManager()
Implements org. Get the |
| public MonitoringConfig | getMonitoringConfig()
Implements org. Get the Transport monitoring configuration |
| public String | |
| public Processor | getProcessor()
Implements org. Gets the default |
| public ProcessorSelector | getProcessorSelector()
Implements org. Gets the default |
| public int | getReadBufferSize()
Implements org. Get the default size of |
| public long | getReadTimeout(TimeUnit timeUnit)
Implements org. Returns the current value for the blocking read timeout converted to the provided |
| public StateHolder | getState()
Implements org. Return the |
| public MonitoringConfig | getThreadPoolMonitoringConfig()
Implements org. Get the monitoring configuration for Transport thread pool. |
| public ExecutorService | getWorkerThreadPool()
Implements org. Get a thread pool, which will run IOEvent processing (depending on Transport |
| public ThreadPoolConfig | |
| public int | getWriteBufferSize()
Implements org. Get the default size of |
| public long | getWriteTimeout(TimeUnit timeUnit)
Implements org. Returns the current value for the blocking write timeout converted to the provided |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isStopped()
Implements org. Returns true, if this Transport is in stopped state, false otherwise. |
| protected static void | notifyProbesBeforePause(final AbstractTransport
the Transport event occurred on. transport) Notify registered |
| protected static void | notifyProbesBeforeResume(final AbstractTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesBeforeStart(final AbstractTransport
the Transport event occurred on. transport) Notify registered |
| protected static void | notifyProbesBeforeStop(final AbstractTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesConfigChanged(final AbstractTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesPause(final AbstractTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesStop(final AbstractTransport
the Transport event occurred on. transport)Notify registered |
| public Processor | obtainProcessor(IOEvent ioEvent, Connection<L> connection)
Implements org. Gets the default |
| public void | setAttributeBuilder(AttributeBuilder attributeBuilder)
Implements org. Set |
| public void | setIOStrategy(IOStrategy IOStrategy)
Implements org. Set the |
| protected void | |
| public void | setKernelThreadPool(ExecutorService kernelPool)
Implements org. Set a thread pool which will run Transport internal tasks. |
| public void | setKernelThreadPoolConfig(ThreadPoolConfig kernelPoolConfig)
Implements org. Set the |
| public void | setMemoryManager(MemoryManager<E extends Buffer> memoryManager)
Implements org. Set the |
| public void | |
| public void | setProcessor(Processor<E extends Context> processor)
Implements org. Sets the default |
| public void | setProcessorSelector(ProcessorSelector selector)
Implements org. Sets the default |
| public void | setReadBufferSize(int readBufferSize)
Implements org. Set the default size of |
| public void | setReadTimeout(long timeout, TimeUnit timeUnit)
Implements org. Specifies the timeout for the blocking reads. |
| public void | setWorkerThreadPool(final ExecutorService threadPool)
Implements org. Set a thread pool, which will run IOEvent processing (depending on Transport |
| protected void | |
| public void | setWorkerThreadPoolConfig(ThreadPoolConfig workerPoolConfig)
Implements org. Set the |
| public void | setWriteBufferSize(int writeBufferSize)
Implements org. Set the default size of |
| public void | setWriteTimeout(long timeout, TimeUnit timeUnit)
Implements org. Specifies the timeout for the blocking writes. |
| public void | stop()
Implements org.
Deprecated
Stops the transport and closes all the connections |
| attributeBuilder | back to summary |
|---|---|
| protected AttributeBuilder attributeBuilder Transport AttributeBuilder, which will be used to create Attributes | |
| connectionMonitoringConfig | back to summary |
|---|---|
| protected final DefaultMonitoringConfig<ConnectionProbe> connectionMonitoringConfig Connection probes | |
| isBlocking | back to summary |
|---|---|
| protected volatile boolean isBlocking Transport mode | |
| isStandalone | back to summary |
|---|---|
| protected volatile boolean isStandalone
Deprecated
| |
| kernelPool | back to summary |
|---|---|
| protected ExecutorService kernelPool Kernel thread pool. | |
| kernelPoolConfig | back to summary |
|---|---|
| protected ThreadPoolConfig kernelPoolConfig | |
| managedWorkerPool | back to summary |
|---|---|
| protected boolean managedWorkerPool | |
| memoryManager | back to summary |
|---|---|
| protected MemoryManager<E extends Buffer> memoryManager Transport MemoryManager | |
| name | back to summary |
|---|---|
| protected String name Transport name | |
| processor | back to summary |
|---|---|
| protected Processor<E extends Context> processor Transport default Processor | |
| processorSelector | back to summary |
|---|---|
| protected ProcessorSelector processorSelector Transport default ProcessorSelector | |
| readBufferSize | back to summary |
|---|---|
| protected int readBufferSize Transport default buffer size for read operations | |
| readTimeout | back to summary |
|---|---|
| protected long readTimeout | |
| state | back to summary |
|---|---|
| protected final StateHolder<Transport. Transport state controller | |
| strategy | back to summary |
|---|---|
| protected IOStrategy strategy Transport strategy | |
| threadPoolMonitoringConfig | back to summary |
|---|---|
| protected final DefaultMonitoringConfig<ThreadPoolProbe> threadPoolMonitoringConfig Thread pool probes | |
| transportMonitoringConfig | back to summary |
|---|---|
| protected final DefaultMonitoringConfig<TransportProbe> transportMonitoringConfig Transport probes | |
| workerPoolConfig | back to summary |
|---|---|
| protected ThreadPoolConfig workerPoolConfig | |
| workerThreadPool | back to summary |
|---|---|
| protected ExecutorService workerThreadPool Worker thread pool | |
| writeBufferSize | back to summary |
|---|---|
| protected int writeBufferSize Transport default buffer size for write operations | |
| writeTimeout | back to summary |
|---|---|
| protected long writeTimeout | |
| AbstractTransport | back to summary |
|---|---|
| public AbstractTransport(String name) | |
| closeConnection | back to summary |
|---|---|
| protected abstract void closeConnection(Connection<L> connection) throws IOException Close the connection, managed by Transport
| |
| configureBlocking | back to summary |
|---|---|
| public void configureBlocking(boolean isBlocking) Implements org. Doc from org. Sets the
| |
| createJmxManagementObject | back to summary |
|---|---|
| protected abstract Object createJmxManagementObject() Create the Transport JMX management object.
| |
| getAttributeBuilder | back to summary |
|---|---|
| public AttributeBuilder getAttributeBuilder() Implements org. Doc from org. Get
| |
| getConnectionMonitoringConfig | back to summary |
|---|---|
| public MonitoringConfig Implements org. Doc from org. Get the monitoring configuration for Transport
| |
| getIOStrategy | back to summary |
|---|---|
| public IOStrategy getIOStrategy() Implements org. Doc from org. Get the
| |
| getKernelThreadPool | back to summary |
|---|---|
| public ExecutorService getKernelThreadPool() Implements org.
| |
| getKernelThreadPoolConfig | back to summary |
|---|---|
| public ThreadPoolConfig getKernelThreadPoolConfig() Implements org.
| |
| getMemoryManager | back to summary |
|---|---|
| public MemoryManager Implements org. Doc from org. Get the
| |
| getMonitoringConfig | back to summary |
|---|---|
| public MonitoringConfig Implements org. Doc from org. Get the Transport monitoring configuration
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Gets the
| |
| getProcessor | back to summary |
|---|---|
| public Processor Implements org. Doc from org. Gets the default
| |
| getProcessorSelector | back to summary |
|---|---|
| public ProcessorSelector getProcessorSelector() Implements org. Doc from org. Gets the default
| |
| getReadBufferSize | back to summary |
|---|---|
| public int getReadBufferSize() Implements org. Doc from org. Get the default size of
| |
| getReadTimeout | back to summary |
|---|---|
| public long getReadTimeout(TimeUnit timeUnit) Implements org. Doc from org. Returns the current value for the blocking read timeout converted to the provided
| |
| getState | back to summary |
|---|---|
| public StateHolder Implements org. Doc from org. Return the
| |
| getThreadPoolMonitoringConfig | back to summary |
|---|---|
| public MonitoringConfig Implements org. Doc from org. Get the monitoring configuration for Transport thread pool.
| |
| getWorkerThreadPool | back to summary |
|---|---|
| public ExecutorService getWorkerThreadPool() Implements org. Doc from org. Get a thread pool, which will run IOEvent processing (depending on Transport
| |
| getWorkerThreadPoolConfig | back to summary |
|---|---|
| public ThreadPoolConfig getWorkerThreadPoolConfig() Implements org.
| |
| getWriteBufferSize | back to summary |
|---|---|
| public int getWriteBufferSize() Implements org. Doc from org. Get the default size of
| |
| getWriteTimeout | back to summary |
|---|---|
| public long getWriteTimeout(TimeUnit timeUnit) Implements org. Doc from org. Returns the current value for the blocking write timeout converted to the provided
| |
| isBlocking | back to summary |
|---|---|
| public boolean isBlocking() Implements org. Doc from org. Returns the
| |
| isPaused | back to summary |
|---|---|
| public boolean isPaused() Implements org.
| |
| isStandalone | back to summary |
|---|---|
| public boolean isStandalone() Implements org.
| |
| isStopped | back to summary |
|---|---|
| public boolean isStopped() Implements org. Doc from org. Returns true, if this Transport is in stopped state, false otherwise.
| |
| notifyProbesBeforePause | back to summary |
|---|---|
| protected static void notifyProbesBeforePause(final AbstractTransport transport) Notify registered
| |
| notifyProbesBeforeResume | back to summary |
|---|---|
| protected static void notifyProbesBeforeResume(final AbstractTransport transport) Notify registered
| |
| notifyProbesBeforeStart | back to summary |
|---|---|
| protected static void notifyProbesBeforeStart(final AbstractTransport transport) Notify registered
| |
| notifyProbesBeforeStop | back to summary |
|---|---|
| protected static void notifyProbesBeforeStop(final AbstractTransport transport) Notify registered
| |
| notifyProbesConfigChanged | back to summary |
|---|---|
| protected static void notifyProbesConfigChanged(final AbstractTransport transport) Notify registered
| |
| notifyProbesPause | back to summary |
|---|---|
| protected static void notifyProbesPause(final AbstractTransport transport) Notify registered
| |
| notifyProbesStop | back to summary |
|---|---|
| protected static void notifyProbesStop(final AbstractTransport transport) Notify registered
| |
| obtainProcessor | back to summary |
|---|---|
| public Processor Implements org. Doc from org. Gets the default
| |
| setAttributeBuilder | back to summary |
|---|---|
| public void setAttributeBuilder(AttributeBuilder attributeBuilder) Implements org. Doc from org. Set
| |
| setIOStrategy | back to summary |
|---|---|
| public void setIOStrategy(IOStrategy IOStrategy) Implements org. Doc from org. Set the
| |
| setKernelPool0 | back to summary |
|---|---|
| protected void setKernelPool0(final ExecutorService kernelPool) | |
| setKernelThreadPool | back to summary |
|---|---|
| public void setKernelThreadPool(ExecutorService kernelPool) Implements org. Doc from org. Set a thread pool which will run Transport internal tasks. For example
| |
| setKernelThreadPoolConfig | back to summary |
|---|---|
| public void setKernelThreadPoolConfig(ThreadPoolConfig kernelPoolConfig) Implements org. Doc from org. Set the
| |
| setMemoryManager | back to summary |
|---|---|
| public void setMemoryManager(MemoryManager<E extends Buffer> memoryManager) Implements org. Doc from org. Set the
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Implements org. Doc from org. Sets the
| |
| setProcessor | back to summary |
|---|---|
| public void setProcessor(Processor<E extends Context> processor) Implements org. Doc from org. Sets the default
| |
| setProcessorSelector | back to summary |
|---|---|
| public void setProcessorSelector(ProcessorSelector selector) Implements org. Doc from org. Sets the default
| |
| setReadBufferSize | back to summary |
|---|---|
| public void setReadBufferSize(int readBufferSize) Implements org. Doc from org. Set the default size of
| |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(long timeout, TimeUnit timeUnit) Implements org. Doc from org. Specifies the timeout for the blocking reads. This may be overridden on a per-connection basis. A value of zero or less effectively disables the timeout.
| |
| setWorkerThreadPool | back to summary |
|---|---|
| public void setWorkerThreadPool(final ExecutorService threadPool) Implements org. Doc from org. Set a thread pool, which will run IOEvent processing (depending on Transport
| |
| setWorkerThreadPool0 | back to summary |
|---|---|
| protected void setWorkerThreadPool0(final ExecutorService threadPool) | |
| setWorkerThreadPoolConfig | back to summary |
|---|---|
| public void setWorkerThreadPoolConfig(ThreadPoolConfig workerPoolConfig) Implements org. Doc from org. Set the
| |
| setWriteBufferSize | back to summary |
|---|---|
| public void setWriteBufferSize(int writeBufferSize) Implements org. Doc from org. Set the default size of
| |
| setWriteTimeout | back to summary |
|---|---|
| public void setWriteTimeout(long timeout, TimeUnit timeUnit) Implements org. Doc from org. Specifies the timeout for the blocking writes. This may be overridden on a per-connection basis. A value of zero or less effectively disables the timeout.
| |
| stop | back to summary |
|---|---|
| public void stop() throws IOException Implements org. Doc from org. Deprecated
Stops the transport and closes all the connections
| |