Package org.elasticsearch.client.watcher
Class GetWatchResponse
java.lang.Object
org.elasticsearch.client.watcher.GetWatchResponse
-
Constructor Summary
ConstructorDescriptionCtor for missing watchGetWatchResponse
(String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.elasticsearch.common.bytes.BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static GetWatchResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) org.elasticsearch.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.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.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.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-