Class: Droonga::Serf::RemoteCommand::ReportLastMessageTimestamp

Inherits:
Base
  • Object
show all
Defined in:
lib/droonga/serf/remote_command.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#initialize, #log, #should_process?

Constructor Details

This class inherits a constructor from Droonga::Serf::RemoteCommand::Base

Instance Method Details

#processObject



126
127
128
129
130
131
132
133
# File 'lib/droonga/serf/remote_command.rb', line 126

def process
  timestamp = Timestamp.last_message_timestamp
  if timestamp
    @response["timestamp"] = Timestamp.stringify(timestamp)
  else
    @response["timestamp"] = nil
  end
end