Class: Rubcask::Server::AbstractServer

Inherits:
Object
  • Object
show all
Includes:
Protocol
Defined in:
lib/rubcask/server/abstract_server.rb

Direct Known Subclasses

Async, Threaded

Constant Summary collapse

BLOCK_SIZE =
Rubcask::Bytes::KILOBYTE * 64
MAX_READ_SIZE =
BLOCK_SIZE * 128

Constants included from Protocol

Protocol::ERROR, Protocol::NIL, Protocol::OK, Protocol::PING, Protocol::PONG, Protocol::SEPARATOR

Instance Attribute Summary collapse

Method Summary

Methods included from Protocol

create_call_message, encode_message, error_message, nil_message, ok_message, ping_message, pong_message

Instance Attribute Details

#dirObject (readonly)

Returns the value of attribute dir.



15
16
17
# File 'lib/rubcask/server/abstract_server.rb', line 15

def dir
  @dir
end