public interface DelayedMulticastAnnouncementDecoder extends MulticastAnnouncementDecoder
|Modifier and Type||Method and Description|
Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning a
MulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints, boolean delayConstraintCheck) throws IOException
MulticastAnnouncementinstance that contains the decoded data, with constraint checking optionally delayed.
nullconstraints are considered equivalent to empty constraints. Constraint checking may be delayed using the
delayConstraintCheck flag is
the method behaves as follows:
checkConstraintsmethod must be invoked to complete checking of all the constraints.
MulticastAnnouncementcan be invoked are always checked before this method returns.
false, all the specified constraints are checked before this method returns.
buf- a buffer containing the packet data to decode. The contents of
bufmay be used on subsequent invocations of the returned
checkConstraintsmethod. The caller must ensure that the contents of
bufare not modified before invocation of the
checkConstraintsmethod. Additionally, multicast announcement data must begin at position zero of
constraints- the constraints to apply when decoding the data, or
delayConstraintCheck- flag to control delayed constraint checking
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
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.