Package herddb.network
Interface ServerLocator
-
- All Superinterfaces:
AutoCloseable
public interface ServerLocator extends AutoCloseable
Locates the current broker- Author:
- enrico.olivelli
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidbrokerDisconnected()default voidclose()Channelconnect(ChannelEventListener messageReceiver, ConnectionRequestInfo workerInfo)
-
-
-
Method Detail
-
connect
Channel connect(ChannelEventListener messageReceiver, ConnectionRequestInfo workerInfo) throws InterruptedException, ServerNotAvailableException, ServerRejectedConnectionException
-
brokerDisconnected
void brokerDisconnected()
-
close
default void close()
- Specified by:
closein interfaceAutoCloseable
-
-