Class CancellationUnsupportedHandle
java.lang.Object
dev.langchain4j.http.client.sse.CancellationUnsupportedHandle
- All Implemented Interfaces:
ServerSentEventParsingHandle
- Since:
- 1.8.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the parsing of server-sent events.booleanReturnstrueif parsing was cancelled by callingServerSentEventParsingHandle.cancel().
-
Constructor Details
-
CancellationUnsupportedHandle
public CancellationUnsupportedHandle()
-
-
Method Details
-
cancel
public void cancel()Description copied from interface:ServerSentEventParsingHandleCancels the parsing of server-sent events.- Specified by:
cancelin interfaceServerSentEventParsingHandle
-
isCancelled
public boolean isCancelled()Description copied from interface:ServerSentEventParsingHandleReturnstrueif parsing was cancelled by callingServerSentEventParsingHandle.cancel().- Specified by:
isCancelledin interfaceServerSentEventParsingHandle
-