voldemort.store.readonly.io
Class BaseCloser<T>

java.lang.Object
  extended by voldemort.store.readonly.io.BaseCloser<T>
Direct Known Subclasses:
Closer

public abstract class BaseCloser<T>
extends java.lang.Object


Field Summary
protected  java.util.List<T> delegates
           
 
Constructor Summary
BaseCloser()
           
BaseCloser(java.util.List<T> delegates)
           
BaseCloser(T... delegates)
           
 
Method Summary
 void add(T... delegates)
           
 void add(T delegate)
           
protected  void exec()
           
protected  boolean executed()
           
protected abstract  void onDelegate(T delegate)
           
 void setCause(java.lang.Throwable cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegates

protected java.util.List<T> delegates
Constructor Detail

BaseCloser

public BaseCloser()

BaseCloser

public BaseCloser(java.util.List<T> delegates)

BaseCloser

public BaseCloser(T... delegates)
Method Detail

add

public void add(T delegate)

add

public void add(T... delegates)

setCause

public void setCause(java.lang.Throwable cause)

executed

protected boolean executed()

exec

protected void exec()
             throws GroupIOException
Throws:
GroupIOException

onDelegate

protected abstract void onDelegate(T delegate)
                            throws java.io.IOException
Throws:
java.io.IOException


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu