   Pageable
   (next-page [_]
              (.nextPage pred)
-             (run-query m where as pred))) 
+             (run-query m where as pred)))
 
 (def comp-keys
   (comparator (fn [a b]


(defn entry-added-listener [f]
  (when (fn? f)
    (reify 
      EntryAddedListener
        (^void entryAdded [this ^EntryEvent entry]
          (f (.getKey entry) (.getValue entry) (.getOldValue entry))))))

(defn entry-removed-listener [f]
  (when (fn? f)
    (reify 
      EntryRemovedListener
        (^void entryRemoved [this ^EntryEvent entry]
          (f (.getKey entry) (.getValue entry) (.getOldValue entry))))))

(defn entry-updated-listener [f]
  (when (fn? f)
    (reify 
      EntryUpdatedListener
        (^void entryUpdated [this ^EntryEvent entry]
          (f (.getKey entry) (.getValue entry) (.getOldValue entry))))))

                                 InMemoryFormat
                                 EvictionConfig EvictionPolicy EvictionConfig$MaxSizePolicy
                                 NearCacheConfig NearCachePreloaderConfig NearCacheConfig$LocalUpdatePolicy]
           [com.hazelcast.map.listener EntryAddedListener
                                       EntryRemovedListener
                                       EntryEvictedListener
                                       EntryUpdatedListener]
           [com.hazelcast.instance HazelcastInstanceProxy]
           [org.hface InstanceStatsTask]))

(defn new-instance
  ([] (new-instance nil))
  ([conf]
    (Hazelcast/newHazelcastInstance conf)))
