Class AbstractResponse<R>

java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<R>
All Implemented Interfaces:
Response
Direct Known Subclasses:
AlarmResponse, AuthDisableResponse, AuthEnableResponse, AuthRoleAddResponse, AuthRoleDeleteResponse, AuthRoleGetResponse, AuthRoleGrantPermissionResponse, AuthRoleListResponse, AuthRoleRevokePermissionResponse, AuthUserAddResponse, AuthUserChangePasswordResponse, AuthUserDeleteResponse, AuthUserGetResponse, AuthUserGrantRoleResponse, AuthUserListResponse, AuthUserRevokeRoleResponse, CampaignResponse, CompactResponse, DefragmentResponse, DeleteResponse, GetResponse, HashKVResponse, LeaderResponse, LeaseGrantResponse, LeaseKeepAliveResponse, LeaseRevokeResponse, LeaseTimeToLiveResponse, LockResponse, MemberAddResponse, MemberListResponse, MemberRemoveResponse, MemberUpdateResponse, MoveLeaderResponse, ProclaimResponse, PutResponse, ResignResponse, SnapshotResponse, StatusResponse, TxnResponse, UnlockResponse, WatchResponse

public class AbstractResponse<R> extends Object implements Response
  • Constructor Details

    • AbstractResponse

      public AbstractResponse(R response, io.etcd.jetcd.api.ResponseHeader responseHeader)
  • Method Details

    • getHeader

      public Response.Header getHeader()
      Description copied from interface: Response
      Returns the response header
      Specified by:
      getHeader in interface Response
      Returns:
      the header.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getResponse

      protected final R getResponse()
    • getResponseHeader

      protected final io.etcd.jetcd.api.ResponseHeader getResponseHeader()