Search in sources :

Example 1 with IMessageHandler

use of org.eclipse.flux.client.IMessageHandler in project flux by eclipse.

the class KeepAliveConnector method dispose.

public void dispose() {
    messageConnector.removeChannelListener(channelListener);
    unsetScheduledShutdown();
    unsetKeepAliveDelayedMessage();
    executor.shutdown();
    messageConnector.removeMessageHandler(keepAliveResponseHandler);
    for (IMessageHandler messageHandler : messageHandlers) {
        messageConnector.removeMessageHandler(messageHandler);
    }
}
Also used : IMessageHandler(org.eclipse.flux.client.IMessageHandler)

Example 2 with IMessageHandler

use of org.eclipse.flux.client.IMessageHandler in project flux by eclipse.

the class ToolingServiceProvider method dispose.

private void dispose() {
    for (IMessageHandler messageHandler : messageHandlers) {
        messageConnector.removeMessageHandler(messageHandler);
    }
    if (poolMaintenanceFuture != null) {
        poolMaintenanceFuture.cancel(false);
    }
    poolMaintenanceExecutor.shutdown();
    serviceLauncherExecutor.shutdown();
    if (serviceLauncher != null) {
        serviceLauncher.dispose();
    }
}
Also used : IMessageHandler(org.eclipse.flux.client.IMessageHandler)

Example 3 with IMessageHandler

use of org.eclipse.flux.client.IMessageHandler in project flux by eclipse.

the class Repository method dispose.

public void dispose() {
    connected.set(false);
    for (IMessageHandler messageHandler : messageHandlers) {
        messagingConnector.removeMessageHandler(messageHandler);
    }
    syncedProjects.clear();
}
Also used : IMessageHandler(org.eclipse.flux.client.IMessageHandler)

Aggregations

IMessageHandler (org.eclipse.flux.client.IMessageHandler)3