public class LevelDBQueue extends LockBase implements EventQueue, TransactionalSupport
| 构造器和说明 |
|---|
LevelDBQueue(QueueMiddleComponent adapter) |
public LevelDBQueue(QueueMiddleComponent adapter)
public void open()
throws IOException
open 在接口中 EventQueueIOExceptionpublic boolean isOpenTxnMode()
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic void offer(CommonEventSource evt) throws QueueException
offer 在接口中 EventQueueQueueExceptionpublic void offer(CommonEventSource evt, long timeout)
offer 在接口中 EventQueuepublic CommonEventSource peek()
peek 在接口中 EventQueuepublic CommonEventSource peek(long timeout)
peek 在接口中 EventQueuepublic CommonEventSource transfer()
transfer 在接口中 EventQueuepublic CommonEventSource transfer(long timeout)
transfer 在接口中 EventQueuepublic int enqueueSize()
enqueueSize 在接口中 EventQueuepublic boolean isEmpty()
isEmpty 在接口中 EventQueuepublic void setMessageListener(MessageListener listener)
setMessageListener 在接口中 EventQueuepublic void resumeTxn(ResumeTxnHandler handler) throws Exception
resumeTxn 在接口中 TransactionalSupportExceptionpublic EventTxnStatus getTxnStatus(CommonEventSource event, String txnId, EventListener listener) throws Exception
getTxnStatus 在接口中 TransactionalSupportExceptionpublic EventTxnStatus getTxnStatus(CommonEventSource event, String txnId, EventListener listener, org.iq80.leveldb.WriteBatch writeBatch) throws Exception
Exceptionpublic void commit(EventTxnStatus txnStatus) throws Exception
commit 在接口中 TransactionalSupportExceptionpublic void houseKeeping()
throws PersistenceException,
IOException
public HouseKeepingStrategy getHouseKeepingStrategy()
public void setHouseKeepingStrategy(HouseKeepingStrategy houseKeepingStrategy)
public TransactionConfig getTransactionConfig()
public void setTransactionConfig(TransactionConfig transactionConfig)
public Integer getTxnCapacity()
public void setTxnCapacity(Integer txnCapacity)
public TxnQueueComponent getTxnQueueComponent()
public QueueMiddleComponent getQueueMiddleComponent()
Copyright © 2018 Jue Ming. All rights reserved.