org.apache.qpid.testkit
Class Client
java.lang.Object
org.apache.qpid.testkit.Client
- All Implemented Interfaces:
- ExceptionListener
- Direct Known Subclasses:
- Receiver, Sender
public abstract class Client
- extends Object
- implements ExceptionListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Client
public Client(Connection con)
throws Exception
- Throws:
Exception
close
public void close()
onException
public void onException(JMSException e)
- Specified by:
onException
in interface ExceptionListener
setErrorHandler
public void setErrorHandler(ErrorHandler h)
handleError
public void handleError(String msg,
Exception e)
getSsn
protected Session getSsn()
setSsn
protected void setSsn(Session ssn)
isDurable
protected boolean isDurable()
isTransacted
protected boolean isTransacted()
getTxSize
protected int getTxSize()
getAck_mode
protected int getAck_mode()
getContentType
protected String getContentType()
getReportFrequency
protected long getReportFrequency()
getStartTime
protected long getStartTime()
setStartTime
protected void setStartTime(long startTime)
getDf
public DateFormat getDf()
Licensed to the Apache Software Foundation