org.smallmind.quorum.juggler
Class Juggler<P,R>

java.lang.Object
  extended by org.smallmind.quorum.juggler.Juggler<P,R>
All Implemented Interfaces:
BlackList<R>

public class Juggler<P,R>
extends Object
implements BlackList<R>


Constructor Summary
Juggler(Class<P> managedClass, int recoveryCheckSeconds, JugglingPinFactory<P,R> jugglingPinFactory, P... providers)
           
Juggler(Class<P> managedClass, int recoveryCheckSeconds, JugglingPinFactory<P,R> jugglingPinFactory, P provider, int size)
           
 
Method Summary
 void addToBlackList(JugglingPin<R> blackPin)
           
 void deconstruct()
           
 void initialize()
           
 R pickResource()
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.