Interface TableDataProtocolDriver
- All Known Implementing Classes:
TableDataProtocolDriverImpl
public interface TableDataProtocolDriver
-
Method Summary
Modifier and Type Method Description voidauthenticate()voidconnect(com.fishlib.base.Function.Nullary<SocketAddress> addressFunction)Connect to a remote server by address function, allowing fallback to different server addresses.voidconnect(String host, int port)Connect to a remote server.voidconnect(InetSocketAddress address)Connect to a remote server.StringgetLogPrefix()TableDataRequestremovePendingRequest(long requestKey)voidshutdown()TableDataRequesttakeOrAllocateFreeRequest()
-
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()
-