org.mule.api
Interface Closeable

All Known Subinterfaces:
Consumer<T>, Producer<T>
All Known Implementing Classes:
AbstractConsumer, CompositeProducer, ConsumerIterator, ListableObjectStoreProducer, ListConsumer, PagingDelegate, PagingDelegateProducer, PagingDelegateWrapper, QueueProducer, SimpleConsumer

public interface Closeable

Marking interface to identity resources that need to be closed in order to release resources.


Method Summary
 void close()
          Closes the resource.
 

Method Detail

close

void close()
           throws MuleException
Closes the resource. Calling this method is mandatory for any component using this instance once it finishes using it. This method should not throw exception is invoked on an instance that has already been closed

Throws:
MuleException - if an exception occurs closing the resource


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.