Package org.eclipse.lsp4j
Class StaleRequestCapabilities
- java.lang.Object
-
- org.eclipse.lsp4j.StaleRequestCapabilities
-
public class StaleRequestCapabilities extends java.lang.Object
Client capability that signals how the client handles stale requests (e.g. a request for which the client will not process the response anymore since the information is outdated).Since 3.17.0
-
-
Constructor Summary
Constructors Constructor Description StaleRequestCapabilities()
StaleRequestCapabilities(boolean cancel, java.util.List<java.lang.String> retryOnContentModified)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getRetryOnContentModified()
The list of requests for which the client will retry the request if it receives a response with error codeContentModified
int
hashCode()
boolean
isCancel()
The client will actively cancel the request.void
setCancel(boolean cancel)
The client will actively cancel the request.void
setRetryOnContentModified(java.util.List<java.lang.String> retryOnContentModified)
The list of requests for which the client will retry the request if it receives a response with error codeContentModified
java.lang.String
toString()
-
-
-
Method Detail
-
isCancel
public boolean isCancel()
The client will actively cancel the request.
-
setCancel
public void setCancel(boolean cancel)
The client will actively cancel the request.
-
getRetryOnContentModified
public java.util.List<java.lang.String> getRetryOnContentModified()
The list of requests for which the client will retry the request if it receives a response with error codeContentModified
-
setRetryOnContentModified
public void setRetryOnContentModified(java.util.List<java.lang.String> retryOnContentModified)
The list of requests for which the client will retry the request if it receives a response with error codeContentModified
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-