Interface InterceptorOperations
- All Known Subinterfaces:
- ClientRequestInterceptor, ClientRequestInterceptorOperations, Interceptor, IORInterceptor, IORInterceptor_3_0, IORInterceptor_3_0Operations, IORInterceptorOperations, ServerRequestInterceptor, ServerRequestInterceptorOperations
public interface InterceptorOperations
All Portable Interceptors implement Interceptor.
Methods
Modifier and Type | Method and Description |
---|---|
void |
destroy() Provides an opportunity to destroy this interceptor. |
String |
name() Returns the name of the interceptor. |
Methods
name
String name()
Returns the name of the interceptor.
Each Interceptor may have a name that may be used administratively to order the lists of Interceptors. Only one Interceptor of a given name can be registered with the ORB for each Interceptor type. An Interceptor may be anonymous, i.e., have an empty string as the name attribute. Any number of anonymous Interceptors may be registered with the ORB.
- Returns:
- the name of the interceptor.
destroy
void destroy()
Provides an opportunity to destroy this interceptor. The destroy method is called during ORB.destroy
. When an application calls ORB.destroy
, the ORB:
- waits for all requests in progress to complete
- calls the
Interceptor.destroy
operation for each interceptor - completes destruction of the ORB
Interceptor.destroy
on object references for objects implemented on the ORB being destroyed result in undefined behavior. However, method invocations on objects implemented on an ORB other than the one being destroyed are permitted. (This means that the ORB being destroyed is still capable of acting as a client, but not as a server.)
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/javase/8/docs/api/org/omg/PortableInterceptor/InterceptorOperations.html