• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Authpb
    • AuthReflection
    • Permission
    • Permission.Types
    • Permission.Types.Type
    • Role
    • User
  • ETCD.V3
    • AuthCallInvoker
    • AuthExtensions
    • Client
    • ClusterExtensions
    • Constants
    • KVExtensions
    • LeaseExtensions
    • MaintenanceExtensions
    • WatchExtensions
  • Etcdserverpb
    • AlarmMember
    • AlarmRequest
    • AlarmRequest.Types
    • AlarmRequest.Types.AlarmAction
    • AlarmResponse
    • AlarmType
    • Auth
    • Auth.AuthBase
    • Auth.AuthClient
    • AuthDisableRequest
    • AuthDisableResponse
    • AuthEnableRequest
    • AuthEnableResponse
    • AuthenticateRequest
    • AuthenticateResponse
    • AuthRoleAddRequest
    • AuthRoleAddResponse
    • AuthRoleDeleteRequest
    • AuthRoleDeleteResponse
    • AuthRoleGetRequest
    • AuthRoleGetResponse
    • AuthRoleGrantPermissionRequest
    • AuthRoleGrantPermissionResponse
    • AuthRoleListRequest
    • AuthRoleListResponse
    • AuthRoleRevokePermissionRequest
    • AuthRoleRevokePermissionResponse
    • AuthUserAddRequest
    • AuthUserAddResponse
    • AuthUserChangePasswordRequest
    • AuthUserChangePasswordResponse
    • AuthUserDeleteRequest
    • AuthUserDeleteResponse
    • AuthUserGetRequest
    • AuthUserGetResponse
    • AuthUserGrantRoleRequest
    • AuthUserGrantRoleResponse
    • AuthUserListRequest
    • AuthUserListResponse
    • AuthUserRevokeRoleRequest
    • AuthUserRevokeRoleResponse
    • Cluster
    • Cluster.ClusterBase
    • Cluster.ClusterClient
    • CompactionRequest
    • CompactionResponse
    • Compare
    • Compare.TargetUnionOneofCase
    • Compare.Types
    • Compare.Types.CompareResult
    • Compare.Types.CompareTarget
    • DefragmentRequest
    • DefragmentResponse
    • DeleteRangeRequest
    • DeleteRangeResponse
    • HashRequest
    • HashResponse
    • KV
    • KV.KVBase
    • KV.KVClient
    • Lease
    • Lease.LeaseBase
    • Lease.LeaseClient
    • LeaseGrantRequest
    • LeaseGrantResponse
    • LeaseKeepAliveRequest
    • LeaseKeepAliveResponse
    • LeaseRevokeRequest
    • LeaseRevokeResponse
    • LeaseTimeToLiveRequest
    • LeaseTimeToLiveResponse
    • Maintenance
    • Maintenance.MaintenanceBase
    • Maintenance.MaintenanceClient
    • Member
    • MemberAddRequest
    • MemberAddResponse
    • MemberListRequest
    • MemberListResponse
    • MemberRemoveRequest
    • MemberRemoveResponse
    • MemberUpdateRequest
    • MemberUpdateResponse
    • PutRequest
    • PutResponse
    • RangeRequest
    • RangeRequest.Types
    • RangeRequest.Types.SortOrder
    • RangeRequest.Types.SortTarget
    • RangeResponse
    • RequestOp
    • RequestOp.RequestOneofCase
    • ResponseHeader
    • ResponseOp
    • ResponseOp.ResponseOneofCase
    • RpcReflection
    • SnapshotRequest
    • SnapshotResponse
    • StatusRequest
    • StatusResponse
    • TxnRequest
    • TxnResponse
    • Watch
    • Watch.WatchBase
    • Watch.WatchClient
    • WatchCancelRequest
    • WatchCreateRequest
    • WatchCreateRequest.Types
    • WatchCreateRequest.Types.FilterType
    • WatchRequest
    • WatchRequest.RequestUnionOneofCase
    • WatchResponse
  • Mvccpb
    • Event
    • Event.Types
    • Event.Types.EventType
    • KeyValue
    • KvReflection

Class Lease.LeaseBase

Base class for server-side implementations of Lease

Inheritance
System.Object
Lease.LeaseBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Etcdserverpb
Assembly: cs.temp.dll.dll
Syntax
public abstract class LeaseBase

Methods

LeaseGrant(LeaseGrantRequest, grpc.ServerCallContext)

LeaseGrant creates a lease which expires if the server does not receive a keepAlive within a given time to live period. All keys attached to the lease will be expired and deleted if the lease expires. Each expired key generates a delete event in the event history.

Declaration
public virtual Task<LeaseGrantResponse> LeaseGrant(LeaseGrantRequest request, grpc.ServerCallContext context)
Parameters
Type Name Description
LeaseGrantRequest request

The request received from the client.

grpc.ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
System.Threading.Tasks.Task<LeaseGrantResponse>

The response to send back to the client (wrapped by a task).

LeaseKeepAlive(grpc.IAsyncStreamReader<LeaseKeepAliveRequest>, grpc.IServerStreamWriter<LeaseKeepAliveResponse>, grpc.ServerCallContext)

LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client to the server and streaming keep alive responses from the server to the client.

Declaration
public virtual Task LeaseKeepAlive(grpc.IAsyncStreamReader<LeaseKeepAliveRequest> requestStream, grpc.IServerStreamWriter<LeaseKeepAliveResponse> responseStream, grpc.ServerCallContext context)
Parameters
Type Name Description
grpc.IAsyncStreamReader<LeaseKeepAliveRequest> requestStream

Used for reading requests from the client.

grpc.IServerStreamWriter<LeaseKeepAliveResponse> responseStream

Used for sending responses back to the client.

grpc.ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
System.Threading.Tasks.Task

A task indicating completion of the handler.

LeaseRevoke(LeaseRevokeRequest, grpc.ServerCallContext)

LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.

Declaration
public virtual Task<LeaseRevokeResponse> LeaseRevoke(LeaseRevokeRequest request, grpc.ServerCallContext context)
Parameters
Type Name Description
LeaseRevokeRequest request

The request received from the client.

grpc.ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
System.Threading.Tasks.Task<LeaseRevokeResponse>

The response to send back to the client (wrapped by a task).

LeaseTimeToLive(LeaseTimeToLiveRequest, grpc.ServerCallContext)

LeaseTimeToLive retrieves lease information.

Declaration
public virtual Task<LeaseTimeToLiveResponse> LeaseTimeToLive(LeaseTimeToLiveRequest request, grpc.ServerCallContext context)
Parameters
Type Name Description
LeaseTimeToLiveRequest request

The request received from the client.

grpc.ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
System.Threading.Tasks.Task<LeaseTimeToLiveResponse>

The response to send back to the client (wrapped by a task).

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX