Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.common
Interface CompletionListener


public interface CompletionListener

When a result is set into a CompletionRequest it invokes all the CompletionListeners for that request. If the result was not a throwable, then OnCompletion is called, otherwise onException is called. Either way, the request is passed in to provide access to the result or any other state associated with the request.


Method Summary
abstract  void onCompletion(CompletionRequest request, Object result)
          This method is invoked when a non-throwable result is set into the request on which we are listening.
abstract  void onException(CompletionRequest request, Throwable reason)
          This method is invoked when a throwable result is set into the request on which we are listening.

 

Method Detail

onCompletion

void onCompletion(CompletionRequest request,
                  Object result)
This method is invoked when a non-throwable result is set into the request on which we are listening. This method must not throw an exception.
Parameters:
request - the request that successfully completed

onException

void onException(CompletionRequest request,
                 Throwable reason)
This method is invoked when a throwable result is set into the request on which we are listening. This method must not throw an exception
Parameters:
request - the request that has thrown an exception

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09