Modifier and Type | Field and Description |
---|---|
protected ConnectionFactory |
connFactory |
protected int |
count |
protected Destination |
destination |
private static org.apache.commons.logging.Log |
log |
protected int |
maxCount |
protected String |
name |
protected String |
password |
protected long |
sleepTime |
protected boolean |
started |
protected boolean |
stop |
protected boolean |
stopped |
protected String |
username |
Modifier and Type | Method and Description |
---|---|
void |
clearMessages() |
void |
execute() |
int |
getCount() |
boolean |
isStarted() |
boolean |
isStopped() |
static void |
main(String[] args) |
void |
run() |
void |
setConnFactory(ConnectionFactory connFactory) |
void |
setDestination(Destination destination) |
void |
setMaxCount(int maxCount) |
void |
setPassword(String password) |
void |
setSleepTime(long sleepTime) |
void |
setUsername(String username) |
void |
stop() |
private static final org.apache.commons.logging.Log log
protected ConnectionFactory connFactory
protected Destination destination
protected boolean stop
protected boolean stopped
protected boolean started
protected int count
protected String name
protected long sleepTime
protected int maxCount
protected String username
protected String password
public Publisher(String name)
public void setConnFactory(ConnectionFactory connFactory)
public void setDestination(Destination destination)
public int getCount()
public void setSleepTime(long sleepTime)
public void setMaxCount(int maxCount)
public void clearMessages()
public void stop()
public boolean isStopped()
public boolean isStarted()
public void setUsername(String username)
public void setPassword(String password)
public static void main(String[] args)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.