GigaSpaces XAP 9.7.2 API

com.sun.jini.discovery
Interface EncodeIterator


public interface EncodeIterator

Iterator for performing multicast encode operations on (potentially) multiple discovery format providers.

Since:
2.0
Author:
Sun Microsystems, Inc.

Method Summary
 boolean hasNext()
          Returns true if this iterator has additional encoders, or false otherwise.
 DatagramPacket[] next()
          Performs a single multicast encode operation using the next encoder provider of a Discovery instance, returning the resulting datagram packets or throwing the resulting exception.
 

Method Detail

next

DatagramPacket[] next()
                      throws IOException
Performs a single multicast encode operation using the next encoder provider of a Discovery instance, returning the resulting datagram packets or throwing the resulting exception.

Returns:
datagram packets resulting from an encode operation
Throws:
IOException - if the encode operation failed
UnsupportedConstraintException - if the encode operation is unable to satisfy its constraints
NoSuchElementException - if there are no more encoders for this iterator

hasNext

boolean hasNext()
Returns true if this iterator has additional encoders, or false otherwise.

Returns:
true if this iterator has additional encoders, or false otherwise

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.