Class Throttler.ThrottlingGroups
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.throttler.Throttler.ThrottlingGroups
-
- Enclosing class:
- Throttler
protected class Throttler.ThrottlingGroups extends java.lang.Object
This class represents a throttling group pool
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,Throttler.ThrottlingGroup>
groups
The pool of individual throttle group services for this pool, keyed by throttle group nameprotected java.lang.String
throttlingGroupTypeName
The throttling group type for this throttling group pool
-
Constructor Summary
Constructors Constructor Description ThrottlingGroups(java.lang.String throttlingGroupTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createOrUpdateThrottleGroup(IThreadContext threadContext, java.lang.String throttleGroup, IThrottleSpec throttleSpec)
Update throttle specificationvoid
destroy(IThreadContext threadContext)
Destroy and shutdown allvoid
freeUnusedResources(IThreadContext threadContext)
Free unused resourcesIConnectionThrottler
obtainConnectionThrottler(IThreadContext threadContext, java.lang.String throttleGroup, java.lang.String[] binNames)
Obtain connection throttler.void
poll(IThreadContext threadContext)
Poll this set of throttle groups.void
removeThrottleGroup(IThreadContext threadContext, java.lang.String throttleGroup)
Remove specified throttle group
-
-
-
Field Detail
-
throttlingGroupTypeName
protected final java.lang.String throttlingGroupTypeName
The throttling group type for this throttling group pool
-
groups
protected final java.util.Map<java.lang.String,Throttler.ThrottlingGroup> groups
The pool of individual throttle group services for this pool, keyed by throttle group name
-
-
Method Detail
-
createOrUpdateThrottleGroup
public void createOrUpdateThrottleGroup(IThreadContext threadContext, java.lang.String throttleGroup, IThrottleSpec throttleSpec) throws ManifoldCFException
Update throttle specification- Throws:
ManifoldCFException
-
obtainConnectionThrottler
public IConnectionThrottler obtainConnectionThrottler(IThreadContext threadContext, java.lang.String throttleGroup, java.lang.String[] binNames) throws ManifoldCFException
Obtain connection throttler.- Returns:
- the throttler, or null of the hierarchy has changed.
- Throws:
ManifoldCFException
-
removeThrottleGroup
public void removeThrottleGroup(IThreadContext threadContext, java.lang.String throttleGroup) throws ManifoldCFException
Remove specified throttle group- Throws:
ManifoldCFException
-
poll
public void poll(IThreadContext threadContext) throws ManifoldCFException
Poll this set of throttle groups.- Throws:
ManifoldCFException
-
freeUnusedResources
public void freeUnusedResources(IThreadContext threadContext) throws ManifoldCFException
Free unused resources- Throws:
ManifoldCFException
-
destroy
public void destroy(IThreadContext threadContext) throws ManifoldCFException
Destroy and shutdown all- Throws:
ManifoldCFException
-
-