eu.cedarsoft.async
Interface CallbackCaller<T>


public interface CallbackCaller<T>

is able to call callbacks with several parameters


Method Summary
 java.lang.Object call(T callback)
          Calls the callback
 java.lang.String getDescription()
          Returns a description for the current callback caller.
 

Method Detail

call

@Nullable
java.lang.Object call(@NotNull
                               T callback)
                      throws java.lang.Exception
Calls the callback

Parameters:
callback - the callback
Returns:
the return value
Throws:
java.lang.Exception - the exception that is thrown

getDescription

@NotNull
java.lang.String getDescription()
Returns a description for the current callback caller. Used for logging and debugging purposes.

Returns:
the description


Copyright © 2008 cedarsoft GmbH. All Rights Reserved.