public class FileQueueStore
extends java.lang.Object
Constructor and Description |
---|
FileQueueStore(Path path,
java.lang.String serverId) |
FileQueueStore(Path path,
java.lang.String serverId,
java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static FileQueueStore |
create() |
int |
getMessageCount() |
java.io.Serializable |
readMessage(long id)
Retrieves a message from the persistent store.
|
java.io.Serializable |
receive(byte[] queueHash)
Retrieves a message from the persistent store.
|
long |
send(byte[] queueHash,
java.lang.String msgId,
java.io.Serializable payload,
int priority,
long expireTime)
Adds a new message to the persistent store.
|
java.lang.String |
toString() |
public FileQueueStore(Path path, java.lang.String serverId, java.lang.ClassLoader loader)
public FileQueueStore(Path path, java.lang.String serverId)
public static FileQueueStore create()
public long send(byte[] queueHash, java.lang.String msgId, java.io.Serializable payload, int priority, long expireTime)
public java.io.Serializable readMessage(long id)
public java.io.Serializable receive(byte[] queueHash)
public int getMessageCount()
public void close()
public java.lang.String toString()
toString
in class java.lang.Object