com.launchdarkly.eventsource.StreamClosedByCallerException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okhttp-eventsource Show documentation
Show all versions of okhttp-eventsource Show documentation
EventSource Implementation built on OkHttp
package com.launchdarkly.eventsource;
/**
* An exception indicating that the stream stopped because you explicitly stopped it.
*
* 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 StreamClosedByCallerException extends StreamException {
/**
* Constructs an instance.
*/
public StreamClosedByCallerException() {
super("Stream closed by client");
}
@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