• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Interface ICounter

This interface contains methods and parameters for Distributed Counter.

Inherited Members
IDistributedDataTypes.Key
IDistributedDataTypes.WriteThruOptions
ILockable.Lock(TimeSpan)
ILockable.Unlock()
INotifiable.RegisterNotification(DataTypeDataNotificationCallback, EventType, DataTypeEventDataFilter)
INotifiable.UnRegisterNotification(DataTypeDataNotificationCallback, EventType)
Assembly: Alachisoft.NCache.Client.dll
Syntax
public interface ICounter : IComparable<long>, IEquatable<long>, IComparable<ICounter>, IEquatable<ICounter>, IDistributedDataTypes, ILockable, INotifiable

Properties

Name Description
Value

Gets the value of counter.

Methods

Name Description
Decrement()

Decrement the value of distributed counter by one.

DecrementBy(Int64)

Decrement the value of distributed counter by the amount specified.

Increment()

Increment the value of distributed counter by one.

IncrementBy(Int64)

Increment the value of distributed counter by the amount specified.

SetValue(Int64)

Sets the given value of the counter.

Back to top Copyright © 2017 Alachisoft