export
method of the underlying exporter supplied during construction of this exporter. Returns the result of unexporting the remote object by calling the unexport
method on the underlying exporter passing force
as the argument.
@throws IllegalStateException {@inheritDoc}
Exporter
such that it will no longer receive remote method invocations that were made possible as a result of exporting it with this Exporter
. The unexport operation may not occur if the force
argument is false
. This method must only be invoked after the export
method has been invoked on this Exporter
instance to export a remote object successfully. This method returns true
if upon return, the remote object is no longer exported with this Exporter
, and false
if the remote object remains exported with this Exporter
. This method will always return true
if it has returned true
previously.
The force
parameter serves to indicate whether or not the caller desires the unexport to occur even if there are known remote calls pending or in progress to the remote object that were made possible by this Exporter
:
force
is true
, then the remote object will be forcibly unexported even if there are remote calls pending or in progress, and this method will return true
. force
is false
, then this acts as a hint to the implementation that the remote object should not be unexported if there are known remote calls pending or in progress, and this method will either unexport the remote object and return true
or not unexport the remote object and return false
. If the implementation detects that there are indeed remote calls pending or in progress, then it should return false
; otherwise, it must return true
. If the implementation does not support being able to unexport conditionally based on knowledge of remote calls pending or in progress, then it must implement this method as if force
were always true
. If the remote object is unexported as a result of this method, then the implementation may (and should, if possible) prevent remote calls in progress from being able to communicate their results successfully.
@param force if true
, the remote object will beunexported even if there are remote calls pending or in progress; if false
, the remote object may only be unexported if there are no known remote calls pending or in progress
@return true
if the remote object is unexported whenthis method returns and false
otherwise
@throws IllegalStateException if an object has not been exportedwith this Exporter
instance
This method unexports the remote object via a call to {@link PortableRemoteObject#unexportObject}, which only supports the equivalent of a "forced" unexport (i.e., one in which the object is unexported regardless of the presence of pending or in-progress calls). Hence, this method will not consult the value of force
, and will always attempt a "forced" unexport of the remote object, returning true
upon normal completion.
@param force ignored value (normally indicates whether or not tounexport the object in the presence of pending or in-progress calls, but this exporter does not support "unforced" unexports)
@return true
@throws IllegalStateException {@inheritDoc}
If force
is true
, the object is forcibly unexported even if there are pending or in-progress remote calls to the object identifier through the server endpoint. If force
is false
, the object is only unexported if there are no pending or in-progress remote calls to the object identifier through the server endpoint.
The return value is true
if the object is (or was previously) unexported, and false
if the object is still exported.
@throws IllegalStateException {@inheritDoc}
export
method such that the object can no longer accept incoming remote calls that were possible as a result of exporting via this exporter. If force
is true
, the object is forcibly unexported even if there are pending or in progress calls to the remote object via this exporter. If force
is false
, the object is only unexported if there are no pending or in progress calls to the remote object via this exporter. This method is equivalent to calling java.rmi.activation.Activatable.unexportObject
or java.rmi.server.UnicastRemoteObject.unexportObject
and passing the "impl" that was previously passed to this exporter's export
method, depending on whether or not this exporter was created with a constructor that accepted a java.rmi.activation.ActivationID
value.
The return value is true
if the object is (or was previously) unexported, and false
if the object is still exported.
@throws IllegalStateException {@inheritDoc}
unexport
method of the main exporter is called with the specified argument and if that returns true
, the unexport
method of the bootstrap exporter is called with true
. The result of the main unexport
call is returned by this method. Any exception thrown by either unexport
call is rethrown by this method.
@throws IllegalStateException if the unexport of either remote objectthrows IllegalStateException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|