public class MessageLocationFilter<D> extends SingleSender<SimpleMessage<D>> implements MessageReceiver<SimpleMessage<D>>
Modifier and Type | Field and Description |
---|---|
protected boolean |
emptyList |
protected boolean |
locationLess |
protected Set<eu.bandm.tools.message.MessageLocationFilter.Region> |
regions |
receiver
Constructor and Description |
---|
MessageLocationFilter(MessageReceiver<SimpleMessage<D>> d,
boolean emptyList,
boolean locationLess) |
Modifier and Type | Method and Description |
---|---|
void |
addRegion(D docId,
int from,
int to) |
void |
addRegion(Location<D> loc) |
void |
addRegion(String docId,
int from,
int to) |
void |
dump(PrintStream p) |
boolean |
match(Location<D> loc) |
void |
receive(SimpleMessage<D> m) |
void |
removeAll() |
void |
removeRegion(D docId,
int from,
int to) |
void |
removeRegion(Location<D> loc) |
void |
removeRegion(String docId,
int from,
int to) |
void |
setEmptyList(boolean el) |
void |
setPassLocationLess(boolean ll) |
getReceiver, send, setReceiver
protected Set<eu.bandm.tools.message.MessageLocationFilter.Region> regions
protected boolean locationLess
protected boolean emptyList
public MessageLocationFilter(MessageReceiver<SimpleMessage<D>> d, boolean emptyList, boolean locationLess)
public void removeAll()
public void setPassLocationLess(boolean ll)
public void setEmptyList(boolean el)
public void addRegion(String docId, int from, int to)
public void addRegion(D docId, int from, int to)
public void removeRegion(String docId, int from, int to)
public void removeRegion(D docId, int from, int to)
public void receive(SimpleMessage<D> m)
receive
in interface MessageReceiver<SimpleMessage<D>>
public void dump(PrintStream p)
see also the complete user documentation .