T
- the payload type to be held in the cachepublic class WriteCache<T> extends WriteFunction<T>
Constructor and Description |
---|
WriteCache()
Creates a new cache.
|
WriteCache(String channelName)
Creates a new cache for the given channel name.
|
Modifier and Type | Method and Description |
---|---|
String |
getChannelName()
The channel associated to this cache
|
Collection<String> |
getPrecedingChannels()
Returns all the channels in the same buffer that should be written
before writing the channel for this cache.
|
T |
getValue()
Returns the value in the cache.
|
void |
setPrecedingChannels(List<String> precedingChannels)
Changes which channels need to be written before the channel
for this cache can be written.
|
void |
setValue(T newValue)
Changes the value in the cache.
|
public WriteCache()
public WriteCache(String channelName)
channelName
- the channel namepublic T getValue()
public void setValue(T newValue)
setValue
in class WriteFunction<T>
newValue
- the new valuepublic void setPrecedingChannels(List<String> precedingChannels)
precedingChannels
- a list of channel namespublic Collection<String> getPrecedingChannels()
public String getChannelName()
Copyright © 2012. All Rights Reserved.