TailPinnedEventArgs TailPinnedEventArgs TailPinnedEventArgs TailPinnedEventArgs Class

定義

TailPinned イベントのデータを提供します。Provides data for the TailPinned event. このクラスは継承できません。This class cannot be inherited.

public ref class TailPinnedEventArgs sealed : EventArgs
public sealed class TailPinnedEventArgs : EventArgs
type TailPinnedEventArgs = class
    inherit EventArgs
Public NotInheritable Class TailPinnedEventArgs
Inherits EventArgs
継承
TailPinnedEventArgsTailPinnedEventArgsTailPinnedEventArgsTailPinnedEventArgs

この例では、TailPinned イベントを使用してログ シーケンスの領域を解放する方法を示します。This example shows how to use the TailPinned event to free up space in a log sequence.

recordSequence.RetryAppend = true;  
recordSequence.TailPinned += new EventHandler<TailPinnedEventArgs>(HandleTailPinned);  
  
void HandleTailPinned(object sender, TailPinnedEventArgs tailPinnedEventArgs)  
{  
   // tailPinnedEventArgs.TargetSequenceNumber is the target   
   // sequence number to free up space to.    
   // However, this sequence number is not necessarily valid.  We have  
   // to use this sequence number as a starting point for finding a  
   // valid point within the log to advance toward. You need to  
   // identify a record with a sequence number equal to, or greater  
   // than TargetSequenceNumber; let's call this   
   // realTargetSequenceNumber. Once found, move the base  
  
   recordSequence.AdvanceBaseSequenceNumber(realTargetSequenceNumber);  
  
}  

注釈

TailPinned イベントは、レコード シーケンスが領域を使い果たしたときに発行できます。The TailPinned event can be fired when the record sequence has run out of space. このイベントが発行されると、シーケンスの末尾 (つまり、基本シーケンス番号) が領域の解放のために前方に移動します。When this event is fired, the tail of the sequence (that is, the base sequence number) is moved forward to free up space.

コンストラクター

TailPinnedEventArgs(SequenceNumber) TailPinnedEventArgs(SequenceNumber) TailPinnedEventArgs(SequenceNumber) TailPinnedEventArgs(SequenceNumber)

TailPinnedEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the TailPinnedEventArgs class.

プロパティ

TargetSequenceNumber TargetSequenceNumber TargetSequenceNumber TargetSequenceNumber

末尾を移動する必要があるシーケンス番号を取得します。Gets the sequence number that the tail should be moved past.

メソッド

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)

適用対象