Skip to content

Package: AsyncHandler

AsyncHandler

Coverage

1: /*
2: * Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package jakarta.xml.ws;
12:
13: /** The {@code AsyncHandler} interface is implemented by
14: * clients that wish to receive callback notification of the completion of
15: * service endpoint operations invoked asynchronously.
16: *
17: * @param <T> The type of the message or payload
18: * @since 1.6, JAX-WS 2.0
19: **/
20: public interface AsyncHandler<T> {
21:
22: /** Called when the response to an asynchronous operation is available.
23: *
24: * @param res The response to the operation invocation.
25: *
26: **/
27: void handleResponse(Response<T> res);
28: }