21 #ifndef KINETIC_CPP_CLIENT_NONBLOCKING_PACKET_SERVICE_INTERFACE_H_
22 #define KINETIC_CPP_CLIENT_NONBLOCKING_PACKET_SERVICE_INTERFACE_H_
24 #include <sys/select.h>
27 #include "kinetic/kinetic_status.h"
28 #include "kinetic_client.pb.h"
32 using com::seagate::kinetic::client::proto::Message;
33 using com::seagate::kinetic::client::proto::Command;
35 using std::shared_ptr;
36 using std::unique_ptr;
39 typedef uint64_t HandlerKey;
47 virtual void Handle(
const Command &response, unique_ptr<const string> value) = 0;
48 virtual void Error(
KineticStatus error, Command
const *
const response) = 0;
55 virtual HandlerKey Submit(unique_ptr<Message> message, unique_ptr<Command> command,
const shared_ptr<const string> value,
56 unique_ptr<HandlerInterface> handler) = 0;
57 virtual bool Run(fd_set *read_fds, fd_set *write_fds,
int *nfds) = 0;
58 virtual bool Remove(HandlerKey handler_key) = 0;
63 #endif // KINETIC_CPP_CLIENT_NONBLOCKING_PACKET_SERVICE_INTERFACE_H_
Indicates whether a Kinetic operation (get, put, security, etc) put succeeded or failed. Unlike Status it provides details like whether the failure resulted from a version or an HMAC error.