blob: 788595691ad7d8984fc0103cb9c189e5ac652af6 [file] [log] [blame]
<!--
! Licensed to the Apache Software Foundation (ASF) under one
! or more contributor license agreements. See the NOTICE file
! distributed with this work for additional information
! regarding copyright ownership. The ASF licenses this file
! to you under the Apache License, Version 2.0 (the
! "License"); you may not use this file except in compliance
! with the License. You may obtain a copy of the License at
!
! http://www.apache.org/licenses/LICENSE-2.0
!
! Unless required by applicable law or agreed to in writing, software
! distributed under the License is distributed on an "AS IS" BASIS,
! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
! See the License for the specific language governing permissions and
! limitations under the License.
!-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher 5.0.4">
<link rel="StyleSheet" href="standard.css" type="text/css" media="screen">
<title>Jini Event Mailbox Service Specification </title>
</head>
<body bgcolor="#ffffff">
<p> </p>
<a href="#skip" title="Skip navigation bar"></a>
<table width="100%">
<tr>
<td align=left><a href="../../spec-index.html">Spec Index</a></td>
<td align=right><i>A Collection of Jini Technology Helper Utilities and Services Specifications
</i></td>
</tr>
</table>
<a name="skip"></a>
<br clear="all">
<hr align="left">
<table width="90%">
<tr>
<td align="right" font size="4"><b>Version 2.0</b></td>
</tr>
</table>
<blockquote>
<h2>
<a name="1005479"> </a>EM - Jini<font size="-1"><sup>TM</sup></font> Event Mailbox Service Specification
</h2>
<h3 class="Heading2">
<a name="1000110"> </a>EM.1 Introduction
</h3>
<p class="Body">
<a name="1001466"> </a>The <a href="event-spec.html"><em class="Emphasis">Jini<font size="-1"><sup>TM</sup></font> Distributed Events Specification</em></a> states the ability to interpose third-party objects, or "agents," into an event notification chain as one of its design goals. This specification also describes a notification mailbox object, which stores and forwards event notifications on behalf of other objects, as an example of a useful third-party agent. These mailbox objects can be particularly helpful for objects that need more control over how and when they receive event notifications.
</p>
<p class="Body">
<a name="1009565"> </a>For example, it would be impossible to send event notifications to a transient entity that has detached itself from a system of Jini<font size="-1"><sup>TM</sup></font> technology-enabled services and/or devices (<em class="Emphasis">Jini system</em>). In such a situation an entity could employ the services of an event mailbox to store event notifications on its behalf before leaving the system. Upon rejoining the Jini system, the entity could then contact the event mailbox to retrieve any collected events that it would otherwise have missed. Similarly, an entity that wishes to deactivate could use an event mailbox to collect event notifications on its behalf while dormant.
</p>
<p class="Body">
<a name="1005881"> </a>Like other Jini technology-enabled services (<em class="Emphasis">Jini services</em>), the event mailbox service will grant its services only for a limited period of time without an active expression of continuing interest. Therefore, event mailbox clients still need to renew their leases if they intend to maintain the mailbox's services beyond the initially granted lease period. Any resources (for example, remote objects or storage space) associated with a particular client can be freed once the client's lease has expired or been cancelled. In the previous usage scenarios, it might also benefit a transient or deactivatable entity to employ the services of a lease renewal service (see the <a href="lrs-spec.html"><em class="Emphasis">Jini Lease Renewal Service Specification</em></a>) to help mitigate the issue of lease maintenance.
</p>
<p class="Body">
<a name="1009032"> </a>The remainder of this specification defines the requirements, interfaces, and protocols of the event mailbox service.
</p>
<h4 class="Heading3">
<a name="1000115"> </a>EM.1.1 Goals and Requirements
</h4>
<p class="Body">
<a name="1000303"> </a>The requirements of the set of interfaces specified in this document are:
</p>
<ul>
<li class="SmartList1"><a name="1000304"> </a>To define a service that is capable of storing event notifications on behalf of its clients and capable of delivering stored event notifications to those clients upon request<p>
<li class="SmartList1"><a name="1005900"> </a>To provide this service in such a way that it can be used by entities that are temporarily unable or unwilling to receive event notifications<p>
<li class="SmartList1"><a name="1000305"> </a>To provide a service that complies with the policies embodied in the Jini technology programming model
</ul>
<p class="Body">
<a name="1005921"> </a>The goals of this specification are:
</p>
<ul>
<li class="SmartList1"><a name="1005926"> </a>To describe the event mailbox service<p>
<li class="SmartList1"><a name="1005931"> </a>To provide guidance in the use and deployment of the event mailbox service
</ul>
<h4 class="Heading3">
<a name="1000302"> </a>EM.1.2 Other Types
</h4>
<p class="Body">
<a name="1000008"> </a>The types defined in the specification of the event mailbox service are in the <code>net.jini.event</code> package. This specification assumes knowledge of the <a href="event-spec.html"><em class="Emphasis">Jini Distributed Events Specification</em></a> and the <a href="lease-spec.html"><em class="Emphasis">Jini Distributed Leasing Specification</em></a>. The following object types may be referenced in this chapter. Whenever referenced, these object types will be referenced in unqualified form:
</p>
<p class="Body">
<a name="1009048"> </a>
</p>
<pre class="Preformatted">
java.rmi.NoSuchObjectException
java.rmi.RemoteException
net.jini.core.event.RemoteEvent
net.jini.core.event.RemoteEventListener
net.jini.core.lease.Lease
net.jini.core.lease.LeaseDeniedException
</pre>
<h3 class="Heading2">
<a name="1001523"> </a>EM.2 The Interface
</h3>
<p class="Body">
<a name="1009792"> </a>The <code>EventMailbox</code> defines the interface to the event mailbox service. Through this interface, other Jini services and clients may request that event notification management be performed on their behalf. This interface belongs to the <code>net.jini.event</code> package, and any service implementing this interface must comply with the definition of a Jini service. This interface is not a remote interface; each implementation exports a proxy object that implements this interface local to the client, using an implementation-specific protocol to communicate with the actual remote server. All of the proxy methods obey normal Java<font size="-1"><sup>TM</sup></font> Remote Method Invocation (Java RMI) interface semantics and can therefore be implemented directly using Java RMI (except where explicitly noted). Two proxy objects are equal (using the <code>equals</code> method) if they are proxies for the same event mailbox service.
</p>
<pre class="Preformatted">
package net.jini.event;
public interface EventMailbox
{
MailboxRegistration register(long leaseDuration)
throws RemoteException, LeaseDeniedException;
}
</pre>
<p class="Body">
<a name="1002029"> </a>
</p>
<p class="Body">
<a name="1009773"> </a>Event mailbox clients wishing to use the mailbox service first register themselves with the service using the <code>register</code> method. Clients then use the methods of the returned <code>MailboxRegistration</code> object (a <em class="Emphasis">registration</em>) in order to:
</p>
<ul>
<li class="SmartList1"><a name="1006019"> </a>Manage the lease for this particular registration<p>
<li class="SmartList1"><a name="1006024"> </a>Obtain a <code>RemoteEventListener</code> reference that can be registered with <em class="Emphasis">event generators</em> (that is, objects that support event notification for changes in their abstract state). This listener will store any received notifications for this particular registration.<p>
<li class="SmartList1"><a name="1006029"> </a>Enable or disable the delivery of any stored notifications for this particular registration
</ul>
<h3 class="Heading2">
<a name="1002030"> </a>EM.3 The Semantics
</h3>
<p class="Body">
<a name="1009820"> </a>To employ the event mailbox service, a client must first register with the event mailbox service by invoking the <code>EventMailbox</code> interface's only method, <code>register</code>. Each invocation of the <code>register</code> method produces a new registration.
</p>
<p class="Body">
<a name="1009847"> </a>The <code>register</code> method may throw a <code>RemoteException</code> or a <code>LeaseDeniedException</code>. Typically, a <code>RemoteException</code> occurs when there is a communication failure between the client and the event mailbox service. If this exception does occur, the registration may or may not have been successful. A <code>LeaseDeniedException</code> is thrown if the event mailbox service is unable or unwilling to grant the registration request. It is implementation specific as to whether or not subsequent attempts (with or without the same argument) are likely to succeed.
</p>
<p class="Body">
<a name="1001539"> </a>Each registration with the event mailbox service is persistent across restarts or crashes of the event mailbox service, until the lease on the registration expires or is cancelled.
</p>
<p class="Body">
<a name="1001803"> </a>The <code>register</code> method takes a single parameter of type <code>long</code> that represents the requested initial lease duration for the registration, in milliseconds. This duration value must be positive (except for the special value of <code>Lease.ANY</code>). Otherwise, an <code>IllegalArgumentException</code> is thrown.
</p>
<p class="Body">
<a name="1008949"> </a>Every method invocation on an event mailbox service (whether the invocation is directly on the service, or indirectly on a <code>MailboxRegistration</code> that the service has created) is atomic with respect to other invocations.
</p>
<p class="Body">
<a name="1008947"> </a>
</p>
<h3 class="Heading2">
<a name="1009616"> </a>EM.4 Supporting Interfaces and Classes
</h3>
<p class="Body">
<a name="1009617"> </a>The <code>register</code> method returns an object that implements the interface <code>MailboxRegistration</code>. It is through this interface that the client controls its registration and notification management with the event mailbox service.
</p>
<pre class="Preformatted">
package net.jini.event;
public interface MailboxRegistration
{
Lease getLease();
RemoteEventListener getListener();
void enableDelivery(RemoteEventListener target)
throws RemoteException;
void disableDelivery() throws RemoteException;
}
</pre>
<p class="Body">
<a name="1002176"> </a>The <code>MailboxRegistration</code> interface is not a remote interface. Each implementation of the event mailbox service exports proxy objects that implement this interface local to the client. These proxies use an implementation-specific protocol to communicate with the remote server. All of the remote proxy methods obey normal Java RMI interface semantics and can therefore be implemented using Java RMI. Two proxy objects are equal (using the <code>equals</code> method) if they are proxies for the same registration, created by the same event mailbox service.
</p>
<p class="Body">
<a name="1002187"> </a>Each remote method of this interface may throw a <code>RemoteException</code>. Typically, this exception occurs when there is a communication failure between the client and the event mailbox service. Whenever a method invocation results in a <code>RemoteException</code>, the method may or may not have successfully completed.
</p>
<p class="Body">
<a name="1006083"> </a>Any invocation of a remote method defined in this interface will result in a <code>NoSuchObjectException</code> if the client's registration with the event mailbox service has expired or has been cancelled. Note that upon receipt of a <code>NoSuchObjectException</code>, the client can assume that the registration no longer exists; the client cannot assume that the event mailbox service itself no longer exists.
</p>
<h4 class="Heading3">
<a name="1006088"> </a>EM.4.1 The Semantics
</h4>
<p class="Body">
<a name="1009632"> </a>The <code>getLease</code> method returns the <code>Lease</code> object associated with the registration. The client can renew or cancel the registration with the mailbox service through the <code>Lease</code> object returned by this method (see the <a href="lease-spec.html"><em class="Emphasis">Jini Distributed Leasing Specification</em></a>). This method is not remote and takes no arguments.
</p>
<p class="Body">
<a name="1006102"> </a>The <code>getListener</code> method returns an object that implements the interface <code>RemoteEventListener</code>. This object, referred to as a <em class="Emphasis">mailbox listener</em>, can then be submitted as the <code>RemoteEventListener</code> argument to an event generator's registration method(s) (see the <a href="event-spec.html"><em class="Emphasis">Jini Distributed Events Specification</em></a>). Subsequent calls to this method will return equivalent objects (in the <code>equals</code> sense). Note that mailbox listeners generated by different registrations will not be equal. This method is not remote and takes no arguments.
</p>
<p class="Body">
<a name="1006111"> </a>The valid period of use for a mailbox listener is tied to the associated registration's lease. A <code>NoSuchObjectException</code> will be thrown if an attempt is made to invoke the <code>notify</code> method on a mailbox listener whose associated lease has terminated.
</p>
<p class="Body">
<a name="1006116"> </a>Mailbox listener references, just like their associated registrations, are persistent across server restarts or crashes until their associated registration's lease terminates.
</p>
<p class="Body">
<a name="1006123"> </a>The <code>enableDelivery</code> method allows a client to initiate delivery of event notifications (received on its behalf by this particular registration) to the client-specified listener, referred to as the <em class="Emphasis">target listener</em>. This method takes a single argument of type <code>RemoteEventListener</code>. Subsequent calls to this method simply replace the registration's existing target listener, if any, with the specified target listener. Passing <code>null</code> as the listener argument has the same effect as disabling delivery (see below).
</p>
<p class="Body">
<a name="1006135"> </a>Resubmitting a mailbox listener back to the same mailbox service that generated it will result in an <code>IllegalArgumentException</code> being thrown. This is necessary to prevent a recursive event notification chain. Therefore, the event mailbox service must keep track of any listener objects that it generates and reject the resubmission of those objects.
</p>
<p class="Body">
<a name="1006124"> </a>Once enabled, event delivery remains enabled until it is disabled. Any events received while delivery is enabled will also be scheduled for delivery.
</p>
<p class="Body">
<a name="1006145"> </a>Event delivery guarantees with respect to exception handling, ordering, and concurrency are implementation specific and are not specified in this document. However, implementations are encouraged to support the following functionality. If an event delivery attempt produces an exception that indicates future attempts might be successful (an indefinite exception), then reasonable efforts should be made to successfully redeliver the event until the associated registration's lease terminates. On the other hand, if an event delivery attempt produces an exception that indicates future attempts will be unsuccessful (a definite exception), then event delivery should be disabled for the associated registration until it is explicitly enabled again.
</p>
<p>
The algorithm used to classify exceptions as definite or indefinite is implementation specific.
</p>
<p class="Body">
<a name="1009346"> </a>Also, implementations may concurrently deliver event notifications to the same target listener, which implies that events may be sent in a different order than the order in which they were originally received. Hence, it is the target listener's responsibility to guard against potential concurrent, out-of-order event delivery.
</p>
<p class="Body">
<a name="1006146"> </a>Similarly, implementations are encouraged to support this method's intended semantics regarding listener replacement. That is, a mailbox client can reasonably assume that listener replacement has occurred upon successful return from this method and can therefore safely unexport the previous listener object. This also implies that any in-progress delivery attempts to the previous listener are either successfully cancelled before returning from this method (blocking), or subsequently retried using the replacement listener after returning from this method (non-blocking). Note that the non-blocking case can potentially allow the previous listener to be notified after successfully returning from this method.
</p>
<p class="Body">
<a name="1006158"> </a>The <code>disableDelivery</code> method allows the client to cease event delivery to the existing target listener, if any. It is acceptable to call this method even if no target listener is currently enabled. This method takes no arguments.
</p>
<p class="Body">
<a name="1006159"> </a>Again, event delivery guarantees are implementation specific and are not specified in this document. Implementations are encouraged to support the method's intended semantics regarding delivery suspension. That is, a mailbox client can reasonably assume that event delivery has been suspended upon successful return from this method and can therefore safely unexport the previously enabled listener object if desired. This also implies that any in-progress delivery attempts to the previously enabled listener are either successfully cancelled before returning from this method (blocking), or subsequently retried using the next enabled listener after returning from this method (non-blocking). Note that the non-blocking case can potentially allow the previously enabled listener to be notified after successfully returning from this method.
</p>
<p class="Body">
<a name="1006161"> </a>The event mailbox service does not normally concern itself with the attributes of the <code>RemoteEvent</code>s that it receives. The one circumstance about which it must concern itself is when a target listener throws an <code>UnknownEventException</code> during an event delivery attempt. The event mailbox service must maintain a list, on a per-registration basis, of the particular combinations of event identifier and source reference (obtained from the offending <code>RemoteEvent</code> object) that produced the exception. The event mailbox must then propagate an <code>UnknownEventException</code> back to any event generator that attempts to deliver a <code>RemoteEvent</code> with an identifier-source combination held in a registration's unknown exception list. The service will also skip the future delivery of any stored events that have an identifier-source combination held in this list.
</p>
<p class="Body">
<a name="1009476"> </a>A registration's unknown exception list is cleared upon re-enabling delivery with any target listener. This list is persistent across service restarts or crashes, until the associated registration's lease terminates.
</p>
<p class="Body">
<a name="1009474"> </a>Note that the act of comparing event source objects for equality may pose a security risk because source objects are potentially given references to other source objects that are currently using the same mailbox. If security is a concern, then care should be taken to prevent independent event sources from obtaining information about each other, for example by using a separate mailbox for each source.
</p>
<p class="Body">
<a name="1006191"> </a>The event mailbox does not support multiple, concurrent notification targets per registration. As a result, the interface supports only a set/clear model rather than the more common add/remove model.
</p>
<p class="Body">
<a name="1009395"> </a>Event persistence guarantees are not specified in this document because no single policy can cover all the possible design trade-offs between reliability, efficiency, and performance. It is expected that operational parameters--controls for how the event mailbox deals with issues such as persistence guarantees, storage quotas, and low space behavior--will be exposed through an administration interface, which can vary across different event mailbox implementations.
</p>
<h3 class="Heading2">
<a name="1009616"> </a>EM.5 The Interface
</h3>
<p class="Body">
The <code>PullEventMailbox</code> defines the interface to the pull event mailbox service (the mailbox service). Through this interface, other Jini technology-enabled services and clients may request that event notification management be performed on their behalf. This interface belongs to the <code>net.jini.event</code> package. This interface is not a remote interface; each implementation exports a proxy object that implements this interface local to the client, using an implementation-specific protocol to communicate with the actual remote server. All of the proxy methods obey normal Java RMI interface semantics and can therefore be implemented directly using Java RMI. Two proxy objects are equal (using the <code>equals</code> method) if they are proxies for the same mailbox service.
<pre>
package net.jini.event;
public interface PullEventMailbox extends EventMailbox
{
MailboxPullRegistration pullRegister(long leaseDuration)
throws RemoteException, LeaseDeniedException;
}
</pre>
<p class="Body">
Clients wishing to use the mailbox service first register themselves with the service using the <code>pullRegister</code> method. Clients then use the methods of the returned <code>MailboxPullRegistration</code> object (a registration) to:
<UL>
<LI>Manage the lease for this particular registration.
<LI>Obtain a <code>RemoteEventListener</code> reference that can be registered with event generators (that is, objects that support event notification for changes in their abstract state). This listener will store event notifications on behalf of this particular registration.
<LI>Synchronously or asynchronously collect any event notifications stored by this particular registration.
</UL>
<h3 class="Heading2">
<a name="2031"> </a>EM.6 The Semantics
</h3>
<p class="Body">
To employ the mailbox service, a client must first register with the mailbox service by invoking the <code>pullRegister</code> method. Each invocation of the <code>pullRegister</code> method produces a new registration object. Each registration is persistent across restarts or crashes of the mailbox service until the registration's lease expires or is canceled.
<p class="Body">
The <code>pullRegister</code> method takes a single parameter of type <code>long</code> that represents the requested initial lease duration for the registration, in milliseconds. This duration value must be positive (except for the special value of <code>Lease.ANY</code>). Otherwise, an <code>IllegalArgumentException</code> is thrown.
<p class="Body">
The <code>pullRegister</code> method may throw a <code>RemoteException</code> or a <code>LeaseDeniedException</code>. Typically, a <code>RemoteException</code> occurs when there is a communication failure between the client and the event mailbox service. If this exception does occur, the registration may or may not have been successful. A <code>LeaseDeniedException</code> is thrown if the mailbox service is unable or unwilling to grant the registration request. If <code>LeaseDeniedException</code> is thrown, it is implementation specific as to whether or not subsequent attempts (with the same or a different argument value) are likely to succeed.
<p class="Body">
Every method invocation on a mailbox service (whether the invocation is directly on the service, or indirectly on a registration that the service has created) is atomic with respect to other invocations.
<h3 class="Heading2">
<a name="2032"> </a>EM.7 Supporting Interfaces and Classes
</h3>
<p class="Body">
The <code>pullRegister</code> method returns an object that implements the <code>MailboxPullRegistration</code> interface. It is through this interface that the client controls its registration and notification management with the mailbox service.
</p>
<pre class="Preformatted">
package net.jini.event;
public interface MailboxPullRegistration extends
MailboxRegistration
{
RemoteEventIterator getRemoteEvents()
throws RemoteException;
void addUnknownEvents(Collection unknownEvents)
throws RemoteException;
}
public interface RemoteEventIterator
{
RemoteEvent next(long timeout)
throws RemoteException, InvalidIteratorException;
void close() throws InvalidIteratorException;
}
public class InvalidIteratorException extends Exception
{
public InvalidIteratorException(String reason);
public InvalidIteratorException();
}
</pre>
<p class="Body">
The <code>MailboxPullRegistration</code> and the <code>RemoteEventIterator</code> interfaces are not remote interfaces. Each implementation of the mailbox service exports proxy objects that implement these interfaces locally to the client. These proxies use an implementation-specific protocol to communicate with the remote server. All of the remote proxy methods obey normal Java RMI interface semantics and can therefore be implemented using Java RMI. Two proxy objects are equal (using the <code>equals</code> method) if they are proxies for the same registration, created by the same mailbox service.
<p class="Body">
Each remote method of these interfaces may throw a <code>RemoteException</code>. Typically, this exception occurs when there is a communication failure between the client and the mailbox service. Whenever a method invocation results in a <code>RemoteException</code>, the method may or may not have successfully completed.
<p class="Body">
Any invocation of a remote method defined in this interface will result in a <code>NoSuchObjectException</code> if the client's registration with the mailbox service has expired or has been canceled. Note that upon receipt of a <code>NoSuchObjectException</code>, the client can assume that the registration no longer exists; the client cannot assume that the mailbox service itself no longer exists.
<h4 class="Heading3">
<a name="20321"> </a>EM.7.1 The Semantics
</h4>
<p class="Body">
The <code>getRemoteEvents</code> method returns a <code>RemoteEventIterator</code> object (an iterator) associated with the registration. The client can retrieve event notifications (received on its behalf by this particular registration) from the mailbox service through the iterator returned by this method.
<p class="Body">
Each invocation of the <code>getRemoteEvents</code> method produces a new iterator. Each new iterator will invalidate all previous iterators produced by the same registration. An invalidated iterator's methods must eventually throw an <code>InvalidIteratorException</code> to indicate this condition.
<p class="Body">
Calling <code>getRemoteEvents</code> also effectively calls <code>disableDelivery</code> for the associated registration. This will disable the registration's associated target listener, if any. Conversely, calling <code>enableDelivery</code> will, in turn, invalidate any existing iterators produced by the same registration.
<p class="Body">
If the combination of the event identifier and the event generator's object reference obtained from an event object is not one in which the mailbox client has registered an interest, an <code>UnknownEventException</code> should be propagated back to the event generator. This is accomplished by calling <code>addUnknownEvents</code> with a collection of unknown events. The effects of modifying the collection of unknown events during a call to <code>addUnknownEvents</code> are undefined.
<p class="Body">
The mailbox service will maintain a list of unknown events, on a per-registration basis, with the particular combinations of event identifier and source reference (obtained from the provided event objects). The mailbox should then propagate an <code>UnknownEventException</code> back to any event generator that attempts to deliver an event with an identifier-source combination held in a registration's unknown exception list. The valid iterator associated with the registration should also eventually skip the future delivery of any stored events that have an identifier-source combination held in this list.
<p class="Body">
A registration's unknown exception list is persistent across service restarts or crashes, until the associated registration's lease terminates or is cleared by subsequent calls to either <code>enableDelivery</code> or <code>getRemoteEvents</code>.
<p class="Body">
<code>RemoteEventIterator</code>'s next method returns either an event from the registration's set of events (event set) or <code>null</code> if the event set is empty. This method takes a single argument of type <code>long</code>, which is the maximum time, in milliseconds, to wait for an event to become available in the event set. This argument must be a non-negative number or an <code>IllegalArgumentException</code> will be thrown. An iterator will not redeliver an event once it has been successfully returned from that iterator.
<p class="Body">
In general, events may be transferred to the client during or after the <code>getRemoteEvents</code> call. If there are <code>InvocationConstraints</code> associated with the <code>getRemoteEvents</code> call, then all of the events returned by <code>next</code> will be transferred in a way that meets those constraints. In particular, any constraints associated with the <code>next</code> method are ignored. The <code>next</code> method may return events after the associated registration lease has expired.
<p class="Body">
The <code>next</code> method may throw an <code>InvalidIteratorException</code>. An <code>InvalidIteratorException</code> is thrown if <code>enableDelivery</code> was subsequently called for this registration, a new iterator was subsequently generated for this registration, or the iterator was closed. Subsequent invocations (with the same or different argument value) will also fail with the same exception once an iterator throws <code>InvalidIteratorException</code>.
<p class="Body">
Calling <code>close</code> ends all event processing being performed by the iterator and invalidates the iterator. Subsequent iterator method invocations will also throw <code>InvalidIteratorException</code>. Any additional termination semantics must be defined by the implementation class itself.
<h3 class="Heading2">
<a name="2034"> </a>EM.8 History
</h3>
<p>
<table align="center" border="1" bordercolorlight="#FFFFFF" bordercolordark="#000000" cellpadding="5" cellspacing="0" summary="history of this specification">
<caption><p class="Body">
<a name="01887"> </a>
</p>
</caption>
<tr bgcolor="#CCCCCC">
<th>Version</th>
<th>Description</th>
</tr>
<tr>
<td>v1.0</td>
<td>Initial release of this specification.</td>
</tr>
<tr>
<td>v2.0</td>
<td>Added "pull" semantics to mailbox specification (sections EM.5 through EM.8)<br>
Changed titles for former "Core" specifications</td>
</tr>
</table>
<h3 class="Heading2">
<a name="0188"> </a> License
</h3>
<p>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
<ul>
<a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>
</ul>
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</blockquote>
<hr>
<a href="#skip" title="Skip navigation bar"></a>
<table width="100%"><tr>
<td align=left><a href="../../spec-index.html">Spec Index</a>
<td align=right><i>A Collection of Jini Technology Helper Utilities and Services Specifications</i></td>
</tr></table>
<a name="skip"></a>
<hr>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
<ul>
<a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>
</ul>
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</body>
</html>
<!-- This HTML file was created with Quadralay WebWorks Publisher 3.5.0 -->
<!-- by Susan Snyder -->
<!-- Last updated: 01/27/05 -->