Class: ZooKeeper::ExistsPacket

Inherits:
Packet show all
Defined in:
lib/zkruby/protocol.rb

Overview

NoNode error is expected for exists

Instance Attribute Summary

Attributes inherited from Packet

#watch_type, #watcher, #xid

Attributes inherited from Operation

#callback, #op, #opcode, #request, #response

Instance Method Summary collapse

Methods inherited from Packet

#error, #initialize

Methods inherited from Operation

#initialize, #path

Constructor Details

This class inherits a constructor from ZooKeeper::Packet

Instance Method Details

#result(rc) ⇒ Object



105
106
107
# File 'lib/zkruby/protocol.rb', line 105

def result(rc)
    Error::NO_NODE === rc ? [ callback, nil, nil, :exists ] : super(rc)
end