public interface ServerConnectorFuture extends HttpConnectorFuture, WebSocketConnectorFuture
| Modifier and Type | Method and Description |
|---|---|
void |
notifyPortBindingError(Throwable throwable)
Notify the port binding listener of exceptions thrown during connector startup
|
void |
notifyPortBindingEvent(String serverConnectorId,
boolean isHttps)
Notify the port binding listener of events related to connector start up
|
void |
notifyPortUnbindingEvent(String serverConnectorId,
boolean isHttps)
Notify the port binding listener of events related to connector termination
|
void |
setPortBindingEventListener(PortBindingEventListener portBindingEventListener)
Set life cycle event listener for the HTTP/WS_SCHEME connector
|
void |
sync()
Waits till the port binding is completed.
|
notifyErrorListener, notifyHttpListener, notifyHttpListener, notifyHttpListener, setHttpConnectorListenernotifyWebSocketIdleTimeout, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, setWebSocketConnectorListenervoid setPortBindingEventListener(PortBindingEventListener portBindingEventListener)
portBindingEventListener - The PortBindingEventListener implementationvoid notifyPortBindingEvent(String serverConnectorId, boolean isHttps)
serverConnectorId - The ID of the server connected related to this port binding eventisHttps - Specifies whether the server connector is using HTTPS.void notifyPortUnbindingEvent(String serverConnectorId, boolean isHttps) throws ServerConnectorException
serverConnectorId - The ID of the server connected related to this port unbinding eventisHttps - Specifies whether the server connector is using HTTPS.ServerConnectorException - Thrown if there is an error in unbinding the port.void notifyPortBindingError(Throwable throwable)
throwable - Exception thrown during connector startupvoid sync() throws InterruptedException
InterruptedException - if any interrupt occurred while waiting for port binding.Copyright © 2021 WSO2. All rights reserved.