mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
ENT-9941: Moved new connector factory to node-api (#7369)
This commit is contained in:
parent
31a34e5a5c
commit
0cc3ffe1d6
@ -182,7 +182,7 @@ class ArtemisTcpTransport {
|
|||||||
threadPoolName: String,
|
threadPoolName: String,
|
||||||
trace: Boolean): TransportConfiguration {
|
trace: Boolean): TransportConfiguration {
|
||||||
return createTransport(
|
return createTransport(
|
||||||
"net.corda.node.services.messaging.NodeNettyConnectorFactory",
|
NodeNettyConnectorFactory::class.java.name,
|
||||||
hostAndPort,
|
hostAndPort,
|
||||||
protocols,
|
protocols,
|
||||||
options,
|
options,
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
package net.corda.node.services.messaging
|
package net.corda.nodeapi.internal
|
||||||
|
|
||||||
import io.netty.channel.ChannelPipeline
|
import io.netty.channel.ChannelPipeline
|
||||||
import io.netty.handler.logging.LogLevel
|
import io.netty.handler.logging.LogLevel
|
||||||
import io.netty.handler.logging.LoggingHandler
|
import io.netty.handler.logging.LoggingHandler
|
||||||
import net.corda.nodeapi.internal.ArtemisTcpTransport
|
|
||||||
import org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
|
import org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
|
||||||
import org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector
|
import org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector
|
||||||
import org.apache.activemq.artemis.spi.core.remoting.BufferHandler
|
import org.apache.activemq.artemis.spi.core.remoting.BufferHandler
|
||||||
@ -15,7 +14,6 @@ import org.apache.activemq.artemis.utils.ConfigurationHelper
|
|||||||
import java.util.concurrent.Executor
|
import java.util.concurrent.Executor
|
||||||
import java.util.concurrent.ScheduledExecutorService
|
import java.util.concurrent.ScheduledExecutorService
|
||||||
|
|
||||||
@Suppress("unused")
|
|
||||||
class NodeNettyConnectorFactory : ConnectorFactory {
|
class NodeNettyConnectorFactory : ConnectorFactory {
|
||||||
override fun createConnector(configuration: MutableMap<String, Any>?,
|
override fun createConnector(configuration: MutableMap<String, Any>?,
|
||||||
handler: BufferHandler?,
|
handler: BufferHandler?,
|
Loading…
Reference in New Issue
Block a user