Package org.eclipse.lsp4j
Class StaleRequestCapabilities
- java.lang.Object
-
- org.eclipse.lsp4j.StaleRequestCapabilities
-
public class StaleRequestCapabilities extends java.lang.ObjectClient 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 booleanequals(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 codeContentModifiedinthashCode()booleanisCancel()The client will actively cancel the request.voidsetCancel(boolean cancel)The client will actively cancel the request.voidsetRetryOnContentModified(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 codeContentModifiedjava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-