Package org.apache.cassandra.streaming
Interface StreamConnectionFactory
-
- All Known Implementing Classes:
BulkLoadConnectionFactory,DefaultConnectionFactory
public interface StreamConnectionFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.netty.channel.ChannelcreateConnection(OutboundConnectionSettings template, int messagingVersion)default booleansupportsPreferredIp()Provide way to disable getPreferredIP() for tools without access to the system keyspace
-
-
-
Method Detail
-
createConnection
io.netty.channel.Channel createConnection(OutboundConnectionSettings template, int messagingVersion) throws java.io.IOException
- Throws:
java.io.IOException
-
supportsPreferredIp
default boolean supportsPreferredIp()
Provide way to disable getPreferredIP() for tools without access to the system keyspaceCASSANDRA-17663 moves calls to SystemKeyspace.getPreferredIP() outside of any threads that are regularly interrupted. However the streaming subsystem is also used by the bulk loader tool, which does not have direct access to the local tables and uses the client metadata/queries to retrieve it.
- Returns:
- true if SystemKeyspace.getPreferredIP() should be used when connecting
-
-