Class: ZooKeeper::ClosePacket

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

Overview

In the normal case the close packet will be last and will get cleared via disconnected() and :session_expired

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



113
114
115
# File 'lib/zkruby/protocol.rb', line 113

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