org.jclouds.lifecycle
Class Closer

java.lang.Object
  extended by org.jclouds.lifecycle.Closer
All Implemented Interfaces:
Closeable

@Singleton
public class Closer
extends Object
implements Closeable

This will close objects in the reverse order that they were added.


Nested Class Summary
static class Closer.State
           
 
Constructor Summary
Closer()
           
 
Method Summary
 void addToClose(Closeable toClose)
           
 void close()
           
 Closer.State getState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Closer

public Closer()
Method Detail

addToClose

public void addToClose(Closeable toClose)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

getState

public Closer.State getState()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.