Annotation Interface Disposer


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Disposer
Designates a remote method as being a Remote object disposer, allowing memory to be freed on the remote side.

When a disposer method is called, it immediately prevents all new remote method invocations on the same object from functioning. Any attempt causes an exception to be thrown. The actual disposer call is allowed to complete normally, but any other methods running concurrently might fail.

@Disposer
void close() throws RemoteException;
See Also: