public interface MulticastAnnouncementDecoder extends DiscoveryFormatProvider
| Modifier and Type | Method and Description |
|---|---|
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. |
getFormatNameMulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) throws IOException
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.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
nullIOException - if an error occurs in interpreting the dataUnsupportedConstraintException - if unable to satisfy the
specified constraintsSecurityException - if the given constraints cannot be satisfied
due to insufficient caller permissionsNullPointerException - if buf is nullCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.