Package dev.avelar.mapnik
Class MapPool.Stats
java.lang.Object
dev.avelar.mapnik.MapPool.Stats
- Enclosing class:
- MapPool
How busy a pool has been since it was created.
-
Method Summary
Modifier and TypeMethodDescriptionintMaps free right now.longAverage wait per borrow, in nanoseconds; 0 before any borrow.intborrowed()Maps borrowed right now.longborrows()Maps handed out so far.longThe longest a single caller waited, in nanoseconds.intsize()Maps in the pool.longtimeouts()Requests that gave up waiting.toString()longTotal time callers spent waiting for a map, in nanoseconds.intwaiting()Callers waiting for a map right now.
-
Method Details
-
size
public int size()Maps in the pool. -
available
public int available()Maps free right now. -
borrowed
public int borrowed()Maps borrowed right now. -
waiting
public int waiting()Callers waiting for a map right now. -
borrows
public long borrows()Maps handed out so far. -
timeouts
public long timeouts()Requests that gave up waiting. -
waitedNanos
public long waitedNanos()Total time callers spent waiting for a map, in nanoseconds. -
longestWaitNanos
public long longestWaitNanos()The longest a single caller waited, in nanoseconds. -
averageWaitNanos
public long averageWaitNanos()Average wait per borrow, in nanoseconds; 0 before any borrow. -
toString
-