Package org.elasticsearch.client.watcher
Class GetWatchResponse
java.lang.Object
org.elasticsearch.client.watcher.GetWatchResponse
-
Constructor Summary
ConstructorDescriptionGetWatchResponse(String id)
Ctor for missing watchGetWatchResponse(String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.elasticsearch.common.bytes.BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static GetWatchResponse
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
org.elasticsearch.common.xcontent.XContentType
Returns theXContentType
of the sourcegetId()
long
long
getSeqNo()
org.elasticsearch.common.bytes.BytesReference
Returns the serialized watchReturns the source as a maplong
int
hashCode()
boolean
isFound()
-
Constructor Details
-
GetWatchResponse
Ctor for missing watch -
GetWatchResponse
public GetWatchResponse(String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.elasticsearch.common.bytes.BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)
-
-
Method Details
-
getId
-
getVersion
public long getVersion() -
getSeqNo
public long getSeqNo() -
getPrimaryTerm
public long getPrimaryTerm() -
isFound
public boolean isFound() -
getStatus
-
getContentType
public org.elasticsearch.common.xcontent.XContentType getContentType()Returns theXContentType
of the source -
getSource
public org.elasticsearch.common.bytes.BytesReference getSource()Returns the serialized watch -
getSourceAsMap
Returns the source as a map -
equals
-
hashCode
public int hashCode() -
fromXContent
public static GetWatchResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-