Class NettyStreamingConnectionFactory
java.lang.Object
org.apache.cassandra.streaming.async.NettyStreamingConnectionFactory
- All Implemented Interfaces:
StreamingChannel.Factory
- Direct Known Subclasses:
BulkLoadConnectionFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.streaming.StreamingChannel.Factory
StreamingChannel.Factory.Global -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NettyStreamingChannelconnect(OutboundConnectionSettings template, int messagingVersion, StreamingChannel.Kind kind) create(InetSocketAddress to, int messagingVersion, StreamingChannel.Kind kind) create(InetSocketAddress to, InetSocketAddress preferred, int messagingVersion, StreamingChannel.Kind kind) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.streaming.StreamingChannel.Factory
supportsPreferredIp
-
Field Details
-
MAX_CONNECT_ATTEMPTS
public static int MAX_CONNECT_ATTEMPTS
-
-
Constructor Details
-
NettyStreamingConnectionFactory
public NettyStreamingConnectionFactory()
-
-
Method Details
-
connect
public static NettyStreamingChannel connect(OutboundConnectionSettings template, int messagingVersion, StreamingChannel.Kind kind) throws IOException - Throws:
IOException
-
create
public StreamingChannel create(InetSocketAddress to, int messagingVersion, StreamingChannel.Kind kind) throws IOException - Specified by:
createin interfaceStreamingChannel.Factory- Throws:
IOException
-
create
public StreamingChannel create(InetSocketAddress to, InetSocketAddress preferred, int messagingVersion, StreamingChannel.Kind kind) throws IOException - Specified by:
createin interfaceStreamingChannel.Factory- Throws:
IOException
-