public abstract class SenderTask extends TimerTask
Constructor and Description |
---|
SenderTask() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getInitString()
getInitString method returns initialization string passed
to it in init() method. |
JID |
getName() |
abstract void |
init(StanzaHandler handler,
String initString)
init method is a task specific initialization rountine. |
void |
setName(JID name) |
cancel, run, scheduledExecutionTime
public void setName(JID name)
public JID getName()
public abstract void init(StanzaHandler handler, String initString) throws IOException
init
method is a task specific initialization rountine.handler
- a StanzaHandler
value is a reference to object
which handles all stanza retrieved from data source. The handler is
responsible for delivering stanza to destination address.initString
- a String
value is an initialization string
for this task. For example database tasks would expect database connection
string here, filesystem task would expect directory here.IOException
- if an error occurs during task or data storage
initialization.public abstract String getInitString()
getInitString
method returns initialization string passed
to it in init()
method.String
value of initialization string.Copyright © 2019 "Tigase, Inc.". All rights reserved.