public final class UpdateChannelInformationRequest extends Object
Request that shall be processed by the
ChannelInformationCache.processUpdate(List, List, Iterable, long)
method. Such requests are processed by the ApiController
and
forwarded to the ChannelInformationCache
.
Constructor and Description |
---|
UpdateChannelInformationRequest(List<ChannelMetaDataDAO.ChannelInformation> channelInformationUpdates,
List<UUID> forwardToServers,
List<String> missingChannels,
long timeStamp)
Creates a request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ChannelMetaDataDAO.ChannelInformation> |
getChannelInformationUpdates()
Returns the list of channel information objects that are updated with
this update.
|
List<UUID> |
getForwardToServers()
Returns the list of servers to which the server receiving this request
should forward it.
|
List<String> |
getMissingChannels()
Returns the list of channels which are missing.
|
long |
getTimeStamp() |
int |
hashCode() |
String |
toString() |
public UpdateChannelInformationRequest(List<ChannelMetaDataDAO.ChannelInformation> channelInformationUpdates, List<UUID> forwardToServers, List<String> missingChannels, long timeStamp)
channelInformationUpdates
- updated channel-information objects.forwardToServers
- list of servers which should be notified with the information
from the update or null
if an empty list shall be
used.missingChannels
- channels that are missing now (the channel information is
null
- typically because the channel has been
deleted).timeStamp
- time stamp (as returned by System.currentTimeMillis()
of the point in time before the channel information that is
sent with this update was retrieved from the database. This
information is used when resolving conflicting updates for the
same channel.NullPointerException
- if channelInformationUpdates
or
missingChannels
is null
or
channelInformationUpdates
,
forwardToServers
, or
missingChannels
contains null
elements.public List<ChannelMetaDataDAO.ChannelInformation> getChannelInformationUpdates()
null
and does never contain
null
elements. However, it might be empty.public List<UUID> getForwardToServers()
null
and does never
contain null
elements. However, it might be empty.public List<String> getMissingChannels()
Returns the list of channels which are missing. A channel is considered
missing if a query for its channel information resulted in a
null
value. Typically, this means that the channel has been
deleted. A channel is included in this list when it existed earlier (or
was at least expected to exist) and now seems to not exist any longer.
The list is never null
and does never contain
null
elements. However, it might be empty.
public long getTimeStamp()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.