com.sleepycat.je.rep.stream
Class Protocol.Commit

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.BinaryProtocol.Message
      extended by com.sleepycat.je.rep.stream.Protocol.Entry
          extended by com.sleepycat.je.rep.stream.Protocol.Commit
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Enclosing class:
Protocol

public class Protocol.Commit
extends Protocol.Entry


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.stream.Protocol.Entry
inputWireRecord, outputWireRecord
 
Constructor Summary
Protocol.Commit()
           
Protocol.Commit(boolean needsAck, Durability.SyncPolicy replicaSyncPolicy, OutputWireRecord wireRecord)
           
Protocol.Commit(ByteBuffer buffer)
           
 
Method Summary
 boolean getNeedsAck()
           
 BinaryProtocol.MessageOp getOp()
           
 Durability.SyncPolicy getReplicaSyncPolicy()
           
 ByteBuffer wireFormat()
          The default message consists of the operation enum and just a 0 length size.
 
Methods inherited from class com.sleepycat.je.rep.stream.Protocol.Entry
getWireRecord, getWireSize, match, toString
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.Message
allocateInitializedBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Protocol.Commit

public Protocol.Commit()

Protocol.Commit

public Protocol.Commit(boolean needsAck,
                       Durability.SyncPolicy replicaSyncPolicy,
                       OutputWireRecord wireRecord)

Protocol.Commit

public Protocol.Commit(ByteBuffer buffer)
                throws DatabaseException
Throws:
DatabaseException
Method Detail

getOp

public BinaryProtocol.MessageOp getOp()
Overrides:
getOp in class Protocol.Entry

wireFormat

public ByteBuffer wireFormat()
Description copied from class: BinaryProtocol.Message
The default message consists of the operation enum and just a 0 length size.

Specified by:
wireFormat in interface BinaryProtocol.WireFormatable
Overrides:
wireFormat in class Protocol.Entry

getNeedsAck

public boolean getNeedsAck()

getReplicaSyncPolicy

public Durability.SyncPolicy getReplicaSyncPolicy()


Copyright (c) 2004-2010 Oracle. All rights reserved.