org.smallmind.quorum.juggler
Class Juggler<P,R>
java.lang.Object
org.smallmind.quorum.juggler.Juggler<P,R>
- All Implemented Interfaces:
- BlackList<R>
public class Juggler<P,R>
- extends Object
- implements BlackList<R>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Juggler
public Juggler(Class<P> managedClass,
int recoveryCheckSeconds,
JugglingPinFactory<P,R> jugglingPinFactory,
P provider,
int size)
Juggler
public Juggler(Class<P> managedClass,
int recoveryCheckSeconds,
JugglingPinFactory<P,R> jugglingPinFactory,
P... providers)
initialize
public void initialize()
throws JugglerResourceCreationException
- Throws:
JugglerResourceCreationException
startup
public void startup()
throws JugglerResourceException
- Throws:
JugglerResourceException
pickResource
public R pickResource()
throws NoAvailableJugglerResourceException
- Throws:
NoAvailableJugglerResourceException
addToBlackList
public void addToBlackList(JugglingPin<R> blackPin)
- Specified by:
addToBlackList in interface BlackList<R>
shutdown
public void shutdown()
deconstruct
public void deconstruct()
Copyright © 2012. All Rights Reserved.