All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchdarkly.eventsource.StreamClosedByServerException Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package com.launchdarkly.eventsource;

/**
 * An exception indicating that the stream stopped because the server closed the
 * connection.
 * 

* This exception only happens if you are trying to read from one thread while * {@link EventSource#stop()}, {@link EventSource#interrupt()}, or {@link EventSource#close()} * is called from another thread. *

* See {@link StreamException} for more about EventSource's exception behavior. * * @since 4.0.0 */ @SuppressWarnings("serial") public class StreamClosedByServerException extends StreamException { /** * Constructs an instance. */ public StreamClosedByServerException() { super("Stream closed by server"); } @Override public boolean equals(Object o) { return o != null && getClass() == o.getClass(); } @Override public int hashCode() { return 0; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy