Interface TableDataProtocolDriver
- All Known Implementing Classes:
TableDataProtocolDriverImpl
public interface TableDataProtocolDriver
-
Method Summary
Modifier and Type Method Description void
authenticate()
void
connect(com.fishlib.base.Function.Nullary<SocketAddress> addressFunction)
Connect to a remote server by address function, allowing fallback to different server addresses.void
connect(String host, int port)
Connect to a remote server.void
connect(InetSocketAddress address)
Connect to a remote server.String
getLogPrefix()
TableDataRequest
removePendingRequest(long requestKey)
void
shutdown()
TableDataRequest
takeOrAllocateFreeRequest()
-
Method Details
-
authenticate
void authenticate() -
connect
Connect to a remote server.- Parameters:
address
- The host/port to connect to- Throws:
IOException
-
connect
Connect to a remote server.- Parameters:
host
- The host to connect toport
- The port to connect to- Throws:
IOException
-
connect
void connect(@NotNull com.fishlib.base.Function.Nullary<SocketAddress> addressFunction) throws IOExceptionConnect to a remote server by address function, allowing fallback to different server addresses.- Parameters:
addressFunction
- The address function to determine each connection attempt's host and port- Throws:
IOException
-
shutdown
void shutdown() -
removePendingRequest
-
takeOrAllocateFreeRequest
-
getLogPrefix
String getLogPrefix()
-