            [elephantdb.common.database Database]
            [elephantdb.common.domain Domain]
            [elephantdb.generated DomainNotFoundException
-            DomainNotLoadedException HostsDownException WrongHostException]
+            DomainNotLoadedException WrongHostException]
            [elephantdb.generated.keyval ElephantDB$Client 
             ElephantDB$Iface ElephantDB$Processor])
   (:gen-class))

        (multi-get get-fn
                   database
                   domain-name
                   (map (fn [^ByteBuffer x]
                          (.array x))
                        key-seq))))

    (multiGetInt [this domain-name key-seq]

  [^ElephantDB$Iface service database domain-name error-suffix key-seq]
  (try (let [^Domain dom (db/domain-get database domain-name)
             serializer  (.serializer dom)
             key-seq     (map (fn [x]
                                (ByteBuffer/wrap
                                 (.serialize serializer x)))
                              key-seq)] 
         (.directKryoMultiGet service domain-name key-seq))
       (catch TException e
         (log/error e "Thrift exception on " error-suffix)) ;; try next host
