use of org.openkilda.floodlight.error.SessionConnectionLostException in project open-kilda by telstra.
the class Session method disconnect.
void disconnect() {
// must be safe to be called multiple times
if (completed) {
return;
}
completed = true;
// Setup correlationId (because this method called asynchronously by FL core).
try (CorrelationContext.CorrelationContextClosable closable = CorrelationContext.create(context.getCorrelationId())) {
SessionConnectionLostException e = new SessionConnectionLostException(sw.getId());
incompleteRequestsStream().forEach(entry -> entry.completeExceptionally(e));
}
}
Aggregations