net.sf.dropboxmq
Class Dropbox
java.lang.Object
net.sf.dropboxmq.Dropbox
public class Dropbox
- extends Object
Created: 09 Oct 2005
- Version:
- $Revision: 231 $, $Date: 2011-08-12 21:50:47 -0600 (Fri, 12 Aug 2011) $
- Author:
- Dwayne Schultz
Dropbox
public Dropbox(SessionImpl session,
DestinationImpl destination,
String messageSelector,
String subscriptionName,
boolean noLocal,
Configuration configuration)
throws JMSException
- Throws:
JMSException
getSession
public SessionImpl getSession()
getDestination
public DestinationImpl getDestination()
getMessageSelector
public String getMessageSelector()
getSubscriptionName
public String getSubscriptionName()
isNoLocal
public boolean isNoLocal()
getStructure
public DirectoryStructure getStructure()
getFileSystem
public FileSystem getFileSystem()
close
public void close()
send
public void send(Message message,
int priority,
long timeToLive)
throws IOException,
JMSException,
FileSystem.FileSystemException
- Throws:
IOException
JMSException
FileSystem.FileSystemException
receive
public Message receive()
throws JMSException,
IOException,
FileSystem.FileSystemException
- Throws:
JMSException
IOException
FileSystem.FileSystemException
receive
public Message receive(long timeout)
throws JMSException,
IOException,
FileSystem.FileSystemException
- Throws:
JMSException
IOException
FileSystem.FileSystemException
receiveNoWait
public Message receiveNoWait()
throws IOException,
JMSException,
FileSystem.FileSystemException
- Throws:
IOException
JMSException
FileSystem.FileSystemException
createMessage
public MessageImpl createMessage(File messageFile)
throws JMSException
- Throws:
JMSException
getCurrentTargetFiles
public List getCurrentTargetFiles()
throws JMSException
- Throws:
JMSException
throwRuntimeException
public static void throwRuntimeException(String message)
throwRuntimeException
public static void throwRuntimeException(Throwable t)
throwRuntimeException
public static void throwRuntimeException(String message,
Throwable t)
toString
public String toString()
- Overrides:
toString
in class Object
toObjectString
protected final String toObjectString()