public class StreamSingleTermFilter
extends org.kurator.akka.KuratorActor
| Modifier and Type | Field and Description |
|---|---|
protected String |
filterKeyToMatch |
protected String |
matchValue |
protected boolean |
passOnMatch |
| Constructor and Description |
|---|
StreamSingleTermFilter()
Default constructor to satisfy Spring.
|
StreamSingleTermFilter(String filterKeyToMatch,
String matchValue,
boolean passOnMatch)
Constructor to configure a stream single term filter messages in the form of a
Map <String,String> on a single key in the map and a single match value on the key
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilterKeyToMatch() |
String |
getMatchValue() |
boolean |
isPassOnMatch() |
protected void |
onData(Object message) |
void |
setFilterKeyToMatch(String filterKeyToMatch) |
void |
setMatchValue(String matchValue) |
void |
setPassOnMatch(boolean passOnMatch) |
void |
setPassOnMatch(String passOnMatch) |
broadcast, configuration, endStreamAndStop, endStreamAndStop, errorStream, getReceivedWrappedMessage, inputs, inputStream, listeners, logger, metadataReaders, metadataWriters, onEnd, onEndOfStream, onFutureComplete, onInitialize, onReceive, onStart, onTrigger, outputStream, publishArtifact, publishArtifact, publishArtifacts, publishProduct, publishProduct, publishProducts, reportException, runner, setNeedsTrigger, settingsakka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, getContext, getSelf, getSender, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandledprotected String filterKeyToMatch
protected String matchValue
protected boolean passOnMatch
public StreamSingleTermFilter()
public StreamSingleTermFilter(String filterKeyToMatch, String matchValue, boolean passOnMatch)
filterKeyToMatch - key in the Map of Key,Value to check for a matchmatchValue - value in the Map of Key,Value to match.passOnMatch - behavior of the filter, if true: if there is a match pass the message
on otherwise drop the message; if false: if there is a match drop the message, otherwise
pass it on.public String getFilterKeyToMatch()
public void setFilterKeyToMatch(String filterKeyToMatch)
filterKeyToMatch - the filterKeyToMatch to setpublic String getMatchValue()
public void setMatchValue(String matchValue)
matchValue - the matchValue to setpublic boolean isPassOnMatch()
public void setPassOnMatch(boolean passOnMatch)
passOnMatch - the passOnMatch to setpublic void setPassOnMatch(String passOnMatch)
Copyright © 2018. All rights reserved.