com.atlassian.util.concurrent
Interface ExceptionPolicy

All Known Implementing Classes:
ExceptionPolicy.Policies

public interface ExceptionPolicy

Represents an exception handling policy. Default implementations can be found in ExceptionPolicy.Policies.


Nested Class Summary
static class ExceptionPolicy.Policies
          Default exception handling policies
 
Method Summary
<T> com.google.common.base.Function<com.google.common.base.Supplier<T>,com.google.common.base.Supplier<T>>
handler()
          Handle a supplier which may or may not throw an Exception.
 

Method Detail

handler

<T> com.google.common.base.Function<com.google.common.base.Supplier<T>,com.google.common.base.Supplier<T>> handler()
Handle a supplier which may or may not throw an Exception.

Type Parameters:
T - the return type of the Supplier
Returns:
the ExceptionPolicy handler


Copyright © 2014 Atlassian. All Rights Reserved.