GigaSpaces XAP 10.0.1 API

com.sun.jini.discovery
Interface MulticastAnnouncementDecoder

All Superinterfaces:
DiscoveryFormatProvider
All Known Subinterfaces:
DelayedMulticastAnnouncementDecoder
All Known Implementing Classes:
Client, X500Client

public interface MulticastAnnouncementDecoder
extends DiscoveryFormatProvider

Interface implemented by classes which decode multicast announcement data according to discovery protocol formats.

Since:
2.0
Author:
Sun Microsystems, Inc.

Method Summary
 MulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints)
          Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning a MulticastAnnouncement instance that contains the decoded data.
 
Methods inherited from interface com.sun.jini.discovery.DiscoveryFormatProvider
getFormatName
 

Method Detail

decodeMulticastAnnouncement

MulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf,
                                                  InvocationConstraints constraints)
                                                  throws IOException
Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning a MulticastAnnouncement instance that contains the decoded data. null constraints are considered equivalent to empty constraints. All the specified constraints are checked before this method returns.

Parameters:
buf - a buffer containing the packet data to decode. The multicast announcement data must begin at position zero of buf.
constraints - the constraints to apply when decoding the data, or null
Returns:
the decoded multicast announcement data
Throws:
IOException - if an error occurs in interpreting the data
UnsupportedConstraintException - if unable to satisfy the specified constraints
SecurityException - if the given constraints cannot be satisfied due to insufficient caller permissions
NullPointerException - if buf is null

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.