public abstract class BasePollerProcessor extends Object implements PollerProcessor
Constructor and Description |
---|
BasePollerProcessor() |
Modifier and Type | Method and Description |
---|---|
protected abstract PollerResponse |
doReceive(PollerRequest pollerRequest) |
protected abstract void |
doSend(PollerRequest pollerRequest) |
protected boolean |
getBoolean(PollerRequest pollerRequest,
String name) |
protected boolean |
getBoolean(PollerRequest pollerRequest,
String name,
boolean defaultValue) |
protected double |
getDouble(PollerRequest pollerRequest,
String name) |
protected double |
getDouble(PollerRequest pollerRequest,
String name,
double defaultValue) |
protected int |
getInteger(PollerRequest pollerRequest,
String name) |
protected int |
getInteger(PollerRequest pollerRequest,
String name,
int defaultValue) |
protected long |
getLong(PollerRequest pollerRequest,
String name) |
protected long |
getLong(PollerRequest pollerRequest,
String name,
long defaultValue) |
protected String |
getString(PollerRequest pollerRequest,
String name) |
protected String |
getString(PollerRequest pollerRequest,
String name,
String defaultValue) |
PollerResponse |
receive(PollerRequest pollerRequest) |
void |
send(PollerRequest pollerRequest) |
public PollerResponse receive(PollerRequest pollerRequest) throws PollerException
receive
in interface PollerProcessor
PollerException
public void send(PollerRequest pollerRequest) throws PollerException
send
in interface PollerProcessor
PollerException
protected abstract PollerResponse doReceive(PollerRequest pollerRequest) throws Exception
Exception
protected abstract void doSend(PollerRequest pollerRequest) throws Exception
Exception
protected boolean getBoolean(PollerRequest pollerRequest, String name)
protected boolean getBoolean(PollerRequest pollerRequest, String name, boolean defaultValue)
protected double getDouble(PollerRequest pollerRequest, String name)
protected double getDouble(PollerRequest pollerRequest, String name, double defaultValue)
protected int getInteger(PollerRequest pollerRequest, String name)
protected int getInteger(PollerRequest pollerRequest, String name, int defaultValue)
protected long getLong(PollerRequest pollerRequest, String name)
protected long getLong(PollerRequest pollerRequest, String name, long defaultValue)
protected String getString(PollerRequest pollerRequest, String name)
protected String getString(PollerRequest pollerRequest, String name, String defaultValue)