public final class SerializationSaavyTransactionalQueue<T> extends SerializationSaavyQueueSupport implements com.hazelcast.core.TransactionalQueue<T>
TransactionalQueue and it uses a ClusterDistributedObject to serialize its values| Constructor and Description |
|---|
SerializationSaavyTransactionalQueue(com.hazelcast.core.TransactionalQueue delegate,
org.mule.runtime.api.serialization.ObjectSerializer objectSerializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
boolean |
offer(T object) |
boolean |
offer(T t,
long timeout,
TimeUnit unit) |
T |
peek() |
T |
peek(long timeout,
TimeUnit unit) |
T |
poll() |
T |
poll(long timeout,
TimeUnit unit) |
int |
size() |
T |
take() |
deserialize, serializepublic SerializationSaavyTransactionalQueue(com.hazelcast.core.TransactionalQueue delegate,
org.mule.runtime.api.serialization.ObjectSerializer objectSerializer)
public boolean offer(T object)
public boolean offer(T t, long timeout, TimeUnit unit) throws InterruptedException
offer in interface com.hazelcast.core.BaseQueue<T>offer in interface com.hazelcast.core.TransactionalQueue<T>InterruptedExceptionpublic T take() throws InterruptedException
take in interface com.hazelcast.core.BaseQueue<T>take in interface com.hazelcast.core.TransactionalQueue<T>InterruptedExceptionpublic T poll()
public T poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface com.hazelcast.core.BaseQueue<T>poll in interface com.hazelcast.core.TransactionalQueue<T>InterruptedExceptionpublic T peek(long timeout, TimeUnit unit) throws InterruptedException
peek in interface com.hazelcast.core.TransactionalQueue<T>InterruptedExceptionpublic int size()
public String getPartitionKey()
getPartitionKey in interface com.hazelcast.core.DistributedObjectpublic String getName()
getName in interface com.hazelcast.core.DistributedObjectpublic String getServiceName()
getServiceName in interface com.hazelcast.core.DistributedObjectpublic void destroy()
destroy in interface com.hazelcast.core.DistributedObjectCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.