use of com.hazelcast.collection.impl.queue.operations.PollBackupOperation in project hazelcast by hazelcast.
the class QueueDataSerializerHook method createFactory.
public DataSerializableFactory createFactory() {
// noinspection unchecked
ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[MERGE_BACKUP + 1];
constructors[OFFER] = arg -> new OfferOperation();
constructors[OFFER_BACKUP] = arg -> new OfferBackupOperation();
constructors[POLL] = arg -> new PollOperation();
constructors[POLL_BACKUP] = arg -> new PollBackupOperation();
constructors[PEEK] = arg -> new PeekOperation();
constructors[ADD_ALL_BACKUP] = arg -> new AddAllBackupOperation();
constructors[ADD_ALL] = arg -> new AddAllOperation();
constructors[CLEAR_BACKUP] = arg -> new ClearBackupOperation();
constructors[CLEAR] = arg -> new ClearOperation();
constructors[COMPARE_AND_REMOVE_BACKUP] = arg -> new CompareAndRemoveBackupOperation();
constructors[COMPARE_AND_REMOVE] = arg -> new CompareAndRemoveOperation();
constructors[CONTAINS] = arg -> new ContainsOperation();
constructors[DRAIN_BACKUP] = arg -> new DrainBackupOperation();
constructors[DRAIN] = arg -> new DrainOperation();
constructors[ITERATOR] = arg -> new IteratorOperation();
constructors[QUEUE_EVENT] = arg -> new QueueEvent();
constructors[QUEUE_EVENT_FILTER] = arg -> new QueueEventFilter();
constructors[QUEUE_ITEM] = arg -> new QueueItem();
constructors[QUEUE_REPLICATION] = arg -> new QueueReplicationOperation();
constructors[REMOVE_BACKUP] = arg -> new RemoveBackupOperation();
constructors[REMOVE] = arg -> new RemoveOperation();
constructors[SIZE] = arg -> new SizeOperation();
constructors[TXN_OFFER_BACKUP] = arg -> new TxnOfferBackupOperation();
constructors[TXN_OFFER] = arg -> new TxnOfferOperation();
constructors[TXN_POLL_BACKUP] = arg -> new TxnPollBackupOperation();
constructors[TXN_POLL] = arg -> new TxnPollOperation();
constructors[TXN_PREPARE_BACKUP] = arg -> new TxnPrepareBackupOperation();
constructors[TXN_PREPARE] = arg -> new TxnPrepareOperation();
constructors[TXN_RESERVE_OFFER] = arg -> new TxnReserveOfferOperation();
constructors[TXN_RESERVE_OFFER_BACKUP] = arg -> new TxnReserveOfferBackupOperation();
constructors[TXN_RESERVE_POLL] = arg -> new TxnReservePollOperation();
constructors[TXN_RESERVE_POLL_BACKUP] = arg -> new TxnReservePollBackupOperation();
constructors[TXN_ROLLBACK_BACKUP] = arg -> new TxnRollbackBackupOperation();
constructors[TXN_ROLLBACK] = arg -> new TxnRollbackOperation();
constructors[CHECK_EVICT] = arg -> new CheckAndEvictOperation();
constructors[QUEUE_CONTAINER] = arg -> new QueueContainer();
constructors[TRANSACTION_ROLLBACK] = arg -> new QueueTransactionRollbackOperation();
constructors[TX_QUEUE_ITEM] = arg -> new TxQueueItem();
constructors[TXN_PEEK] = arg -> new TxnPeekOperation();
constructors[IS_EMPTY] = arg -> new IsEmptyOperation();
constructors[REMAINING_CAPACITY] = arg -> new RemainingCapacityOperation();
constructors[TXN_COMMIT] = arg -> new TxnCommitOperation();
constructors[TXN_COMMIT_BACKUP] = arg -> new TxnCommitBackupOperation();
constructors[MERGE] = arg -> new QueueMergeOperation();
constructors[MERGE_BACKUP] = arg -> new QueueMergeBackupOperation();
return new ArrayDataSerializableFactory(constructors);
}
Aggregations