Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public override void Close()
 {
     if (buf != null)
     {
         buf.Close();
         buf = null;
     }
 }
Пример #2
0
 /// <exception cref="System.IO.IOException"/>
 public QuorumOutputStream(AsyncLoggerSet loggers, long txId, int outputBufferCapacity
                           , int writeTimeoutMs)
     : base()
 {
     this.buf            = new EditsDoubleBuffer(outputBufferCapacity);
     this.loggers        = loggers;
     this.segmentTxId    = txId;
     this.writeTimeoutMs = writeTimeoutMs;
 }
Пример #3
0
 /// <exception cref="System.IO.IOException"/>
 public override void Abort()
 {
     QuorumJournalManager.Log.Warn("Aborting " + this);
     buf = null;
     Close();
 }