Uses of Class
org.jgrapes.io.util.PermitsPool
Package
Description
Utility classes, mainly for adapted buffers to specific needs.
Networking related I/O classes.
-
Uses of PermitsPool in org.jgrapes.io.util
Modifier and TypeMethodDescriptionPermitsPool.acquire()
Acquire a permit, waiting until one becomes available.PermitsPool.addListener
(AvailabilityListener listener) Adds an AvailabilityListener.PermitsPool.augmentPermits
(int permits) Adds the given number of permits to the pool.PermitsPool.reducePermits
(int permits) Remove the given number of permits from the pool.PermitsPool.release()
Release a previously obtained permit.PermitsPool.removeListener
(AvailabilityListener listener) Removes the listener.Modifier and TypeMethodDescriptionvoid
AvailabilityListener.availabilityChanged
(PermitsPool pool, boolean available) Called when the availability has changed. -
Uses of PermitsPool in org.jgrapes.net
Modifier and TypeMethodDescriptionSocketServer.getConnectionLimiter()
Returns the connection limiter.Modifier and TypeMethodDescriptionSocketServer.setConnectionLimiter
(PermitsPool connectionLimiter) Sets a permit “pool”.