public class ClusterQueueStore extends SerializationSaavyQueueSupport implements org.mule.runtime.core.internal.util.queue.QueueStore, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
| Constructor and Description |
|---|
ClusterQueueStore(String name,
org.mule.runtime.core.api.util.queue.QueueConfiguration config,
com.hazelcast.core.IQueue<Object> queue,
org.mule.runtime.api.serialization.ObjectSerializer objectSerializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
void |
dispose() |
int |
getCapacity() |
String |
getName() |
int |
getSize() |
boolean |
isPersistent() |
boolean |
offer(Serializable o,
int room,
long timeout) |
Serializable |
peek() |
Serializable |
poll(long timeout) |
void |
putNow(Serializable o) |
void |
start() |
void |
stop() |
String |
toString() |
void |
untake(Serializable item) |
deserialize, serializepublic String getName()
getName in interface org.mule.runtime.core.internal.util.queue.QueueStorepublic void putNow(Serializable o) throws InterruptedException
putNow in interface org.mule.runtime.core.internal.util.queue.QueueStoreInterruptedExceptionpublic boolean offer(Serializable o, int room, long timeout) throws InterruptedException
offer in interface org.mule.runtime.core.internal.util.queue.QueueStoreInterruptedExceptionpublic Serializable poll(long timeout) throws InterruptedException
poll in interface org.mule.runtime.core.internal.util.queue.QueueStoreInterruptedExceptionpublic Serializable peek() throws InterruptedException
peek in interface org.mule.runtime.core.internal.util.queue.QueueStoreInterruptedExceptionpublic void untake(Serializable item) throws InterruptedException
untake in interface org.mule.runtime.core.internal.util.queue.QueueStoreInterruptedExceptionpublic int getSize()
getSize in interface org.mule.runtime.core.internal.util.queue.QueueStorepublic void clear()
throws InterruptedException
clear in interface org.mule.runtime.core.internal.util.queue.QueueStoreInterruptedExceptionpublic void dispose()
dispose in interface org.mule.runtime.core.internal.util.queue.QueueStorepublic int getCapacity()
getCapacity in interface org.mule.runtime.core.internal.util.queue.QueueStorepublic void close()
close in interface org.mule.runtime.core.internal.util.queue.QueueStorepublic boolean isPersistent()
isPersistent in interface org.mule.runtime.core.internal.util.queue.QueueStorepublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.