Class GetAccountResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- com.floragunn.signals.actions.account.get.GetAccountResponse
-
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class GetAccountResponse extends org.elasticsearch.action.ActionResponse implements org.elasticsearch.common.xcontent.ToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
org.elasticsearch.transport.TransportResponse.Empty
-
-
Constructor Summary
Constructors Constructor Description GetAccountResponse()GetAccountResponse(String id, boolean exists)GetAccountResponse(String id, boolean exists, long version, long seqNo, long primaryTerm, org.elasticsearch.common.bytes.BytesReference source)GetAccountResponse(org.elasticsearch.action.get.GetResponse getResponse)GetAccountResponse(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()longgetPrimaryTerm()longgetSeqNo()org.elasticsearch.common.bytes.BytesReferencegetSource()longgetVersion()booleanisExists()voidsetExists(boolean exists)voidsetId(String id)voidsetPrimaryTerm(long primaryTerm)voidsetSeqNo(long seqNo)voidsetSource(org.elasticsearch.common.bytes.BytesReference source)voidsetVersion(long version)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Constructor Detail
-
GetAccountResponse
public GetAccountResponse()
-
GetAccountResponse
public GetAccountResponse(String id, boolean exists)
-
GetAccountResponse
public GetAccountResponse(String id, boolean exists, long version, long seqNo, long primaryTerm, org.elasticsearch.common.bytes.BytesReference source)
-
GetAccountResponse
public GetAccountResponse(org.elasticsearch.action.get.GetResponse getResponse)
-
GetAccountResponse
public GetAccountResponse(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
getId
public String getId()
-
setId
public void setId(String id)
-
isExists
public boolean isExists()
-
setExists
public void setExists(boolean exists)
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getSeqNo
public long getSeqNo()
-
setSeqNo
public void setSeqNo(long seqNo)
-
getPrimaryTerm
public long getPrimaryTerm()
-
setPrimaryTerm
public void setPrimaryTerm(long primaryTerm)
-
getSource
public org.elasticsearch.common.bytes.BytesReference getSource()
-
setSource
public void setSource(org.elasticsearch.common.bytes.BytesReference source)
-
-