public interface MulticastAnnouncementEncoder extends DiscoveryFormatProvider
Modifier and Type | Method and Description |
---|---|
void |
encodeMulticastAnnouncement(MulticastAnnouncement announcement,
DatagramBufferFactory bufs,
InvocationConstraints constraints)
Encodes the given multicast announcement data into byte buffers obtained
from the provided datagram buffer factory, in a manner that satisfies
the specified absolute constraints.
|
getFormatName
void encodeMulticastAnnouncement(MulticastAnnouncement announcement, DatagramBufferFactory bufs, InvocationConstraints constraints) throws IOException
null
constraints are
considered equivalent to empty constraints. Multicast announcement data
that is too large to fit in a single datagram buffer is split across
multiple buffers, with the constraints applied to each; this method is
responsible for determining if and when to split the data based on the
available space in the obtained buffers.announcement
- the announcement data to encodebufs
- the factory for producing buffers in which to write encoded
dataconstraints
- the constraints to apply when encoding the data, or
null
IOException
- if an error occurs in encoding the data to sendUnsupportedConstraintException
- if unable to satisfy
the specified constraintsSecurityException
- if the given constraints cannot be satisfied
due to insufficient caller permissionsNullPointerException
- if announcement
or
bufs
is null
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.