io.alphatier.java.pools.clj Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alphatier-java Show documentation
Show all versions of alphatier-java Show documentation
Alphatier is a resource management library. It is designed to allow different schedulers to share the
resources of a pool of executors in order to execute tasks with those.
(ns io.alphatier.java.pools
(:import (io.alphatier.java Pool Snapshot LazySnapshot))
(:require [io.alphatier.pools :as pools]
[io.alphatier.java.mappings :as mappings])
(:gen-class
:name io.alphatier.java.InternalPools
:implements [io.alphatier.java.Pools]))
(defn -create [_]
(Pool. (pools/create)))
(defn -getSnapshot [_ ^Pool pool]
(mappings/to-LazySnapshot
(pools/get-snapshot (.getPool pool))))